code: def parse_field(setting, field_name, default):
      
      if isinstance(setting, dict):
          return setting.get(field_name, default)
      else:
          return setting
docs: Extract result from single-value or dict-type setting like fallback_values.