in src/huggingface_inference_toolkit/utils.py [0:0]
def get_pipeline( task: Union[str, None], model_dir: Path, **kwargs,