code: def read_field(source: dict, field_name: str, default: list):
      """
      Function for reading field in the dictionary
  
      Args:
          source: dictionary with information
          field_name: name of the looked up field in the ``source``
          default: default list if ``field_name`` is not in the source dict keys
  
      Returns:
          list with field values
      """
      field_value = source.get(field_name, default)
      if isinstance(field_value, str):
          return import_enums_from_str(field_value)
      return field_value
  
imports: from importlib import import_module
  from typing import List, TYPE_CHECKING, Union
  from fedot.core.repository.dataset_types import DataTypesEnum
  from fedot.core.repository.tasks import TaskTypesEnum
label_desc: Use image node_id 1 for calling a global function with example usage: read_field(source, field_name, default) and returns: field_value, import_enums_from_str