code: def run_function(obj, calc_name):
      try:
          if hasattr(obj, calc_name):
              return getattr(obj, calc_name)()
      except BaseException as ex:
          logger.debug(
              "Could not execute {} function: {}".format(calc_name, ex)
          )
      return None
  
file_path: dtale/dtale/pandas_util.py
imports: import pandas
  from logging import getLogger
  from pkg_resources import parse_version
label_desc: Use image node_id 6 for calling a global function with example usage: run_function(obj, calc_name) and returns: None, getattr