code: def _optional_list(value):
      '''Convert a value that may be a scalar (str) or list into a tuple. This
      produces uniform output for fields that may supply a single value or list
      of values, like the `imports` field.'''
      if isinstance(value, str):
          return (value, )
      elif isinstance(value, list):
          return tuple(value)
  
      return Nonf _optional_list(value):
      '''Convert a value that may be a scalar (str) or list into a tuple. This
      produces uniform output for fields that may supply a single value or list
      of values, like the `imports` field.'''
      if isinstance(value, str):
          return (value, )
      elif isinstance(value, list):
          return tuple(value)
  
      return None
docs: Convert a value that may be a scalar (str) or list into a tuple. This
      produces uniform output for fields that may supply a single value or list
      of values, like the `imports` field.