code: def get_option(name, key_options, global_options, default=None):
      
      if key_options:
          try:
              return key_options[name]
          except KeyError:
              pass
      if global_options:
          try:
              return global_options[name]
          except KeyError:
              pass
  
      return default
docs: Search the key-specific options and the global options for a given
      setting. Either dictionary may be None.
  
      This will first search the key settings and then the global settings.
  
      :param name: The setting to search for
      :param key_options: The item specific settings
      :param global_options: General method parameters
      :return: The option, if found, or None