def _formatting_func_call(formatting_func: Callable, task_type: str) -> str:
    """Helper function to extract the code for the task call.

    Args:
        formatting_func: Function used to prepare the dataset for training.
        task_type: Method called to prepare the dataset for training.

    Returns:
        formatting_func_call
    """
    task_call = getsource(formatting_func) + "\n"
    training_task_args = f"formatting_func={formatting_func.__name__}"
    return task_call + TEMPLATE_TASK_CALL.format(task_type=task_type, training_task_args=training_task_args)
Helper function to extract the code for the task call.

    Args:
        formatting_func: Function used to prepare the dataset for training.
        task_type: Method called to prepare the dataset for training.

    Returns:
        formatting_func_call
    
argilla-v1/src/argilla_v1/client/feedback/integrations/huggingface/model_card/model_card.py