docstr: Instantiates a FineTuningTask from a configuration.
  
  Args:
      config: A configuration for a FineTuningTask.
          See :func:`__init__` for parameters expected in the config.
  
  Returns:
      A FineTuningTask instance.
docstr_tok: ["Instantiates","a","FineTuningTask","from","a","configuration",".","Args",":","config",":","A","configuration","for","a","FineTuningTask",".","See",":","func",":","`","__init__","`","for","parameters","expected","in","the","config",".","Returns",":","A","FineTuningTask","instance","."]
code: def from_config(cls, config: Dict[str, Any]) -> "FineTuningTask":
      """Instantiates a FineTuningTask from a configuration.
  
      Args:
          config: A configuration for a FineTuningTask.
              See :func:`__init__` for parameters expected in the config.
  
      Returns:
          A FineTuningTask instance.
      """
      task = super().from_config(config)
  
      pretrained_checkpoint_path = config.get("pretrained_checkpoint")
      if pretrained_checkpoint_path:
          task.set_pretrained_checkpoint(pretrained_checkpoint_path)
          task.set_pretrained_checkpoint_load_strict(
              config.get("pretrained_checkpoint_load_strict", True)
          )
  
      task.set_reset_heads(config.get("reset_heads", False))
      task.set_freeze_trunk(config.get("freeze_trunk", False))
      return task
  
file_path: ClassyVision/classy_vision/tasks/fine_tuning_task.py
imports: from typing import Any, Dict
  from classy_vision.generic.util import load_and_broadcast_checkpoint, update_classy_model
  from classy_vision.tasks import ClassificationTask, register_task
label_desc: Use image node_id 2 for calling the FineTuningTask obj's underlying member method code with example usage: obj.from_config(cls, config) and returns: task