code: def get_config_val(
      config, defaults, prop, getter="get", section="show"
  ):
      if config.has_option(section, prop):
          return getattr(config, getter)(section, prop)
      return defaults.get(prop)
  
file_path: dtale/dtale/config.py
imports: import json
  import os
  from six import string_types
  from six.moves.configparser import ConfigParser
  import dtale.global_state
  from dtale.utils import dict_merge
label_desc: Use image node_id 4 for calling a global function with example usage: get_config_val(config, defaults, prop, getter, section) and returns: defaults, getattr