def METHOD_NAME(self, model):
    if isinstance(model, str):
        logger.info(f'initiate model from {model}')
    if isinstance(model, str) and is_official_hub_path(model):
        logger.info(f'initiate model from location {model}.')
        # expecting model has been prefetched to local cache beforehand
        return Model.from_pretrained(
            model,
            device=self.device_name,
            model_prefetched=True,
            invoked_by=Invoke.PIPELINE,
            control_type=self.init_control_type) if is_model(
                model) else model
    else:
        return model