code: def expand_value(value):
      """
      If value is a str with at least one dot ("."), try to import it and call
      it, if anything fails, return the value
      """
      if isinstance(value, str) and "." in value:
          parts = value.split(".")
          mod_name, callable = ".".join(parts[:-1]), parts[-1]
  
          try:
              mod = importlib.import_module(mod_name)
          except ModuleNotFoundError:
              return value
  
          try:
              fn = getattr(mod, callable)
          except AttributeError:
              return value
  
          return fn()
      else:
          return value
  
imports: from copy import copy, deepcopy
  import abc
  import inspect
  import importlib
  import itertools
  from collections.abc import Mapping
  import pandas
  from decorator import decorator
  from sklearn_evaluation.exceptions import DataSelectorError
  from sklearn_evaluation.util import map_parameters_in_fn_call
  from sklearn_evaluation.table import Table
label_desc: Use image node_id 2 for calling a global function with example usage: expand_value(value) and returns: fn, value, value, value