code: def real_name(path, root=None):
      if root is not None:
          path = os.path.join(root, path)
  
      result = os.path.basename(path)
  
      if os.path.islink(path):
          real_path = os.readlink(path)
          result = "{} -> {}".format(os.path.basename(path), real_path)
  
      return result
  
imports: from hyperparameter_hunter.settings import G
  from contextlib import suppress
  from inspect import signature
  import numpy
  import os
  import os.path
  import pandas
  import simplejson
  from typing import Union
  import wrapt
label_desc: Use image node_id 8 for calling a global function with example usage: real_name(path, root) and returns: result