code: def _get_head_from_config(self):
      _head_callable = getattr(blocks, self.kwargs.get("head"))
      return _head_callable(
          in_units=self.backbone.output_dim,
          output_dim=self.hparams.output_dim,
          config=_head_callable._config_template(
              **self.kwargs.get("head_config")
          ),
      )
  
imports: import importlib
  import warnings
  from abc import ABCMeta, abstractmethod
  from functools import partial
  from typing import Any, Callable, Dict, List, Optional, Tuple, Type, Union
  import numpy
  import pytorch_lightning
  import torch
  import torch.nn
  import torchmetrics
  from omegaconf import DictConfig, OmegaConf
  from pandas import DataFrame
  from torch import Tensor
  from torch.optim import Optimizer
  from pytorch_tabular.models.common.heads import blocks
  from pytorch_tabular.models.common.layers import PreEncoded1dLayer
  from pytorch_tabular.utils import get_logger, reset_all_weights
label_desc: Use image node_id 2 for calling the _GenericModel obj's underlying member method code with example usage: obj._get_head_from_config() and returns: _head_callable