code: def create_ogr_field_from_definition(field_definition):
      
      if isinstance(field_definition['type'], list):
          # Use the first element in the list of type
          field_type = field_definition['type'][0]
      else:
          field_type = field_definition['type']
  
      # Conversion to OGR field
      field_type = field_type_converter.get(field_type, ogr.OFTString)
  
      return ogr.FieldDefn(field_definition['field_name'], field_type)
docs: Helper to create a field from definition.
  
      :param field_definition: The definition of the field (see:
          safe.definitions.fields).
      :type field_definition: dict
  
      :return: The new ogr field definition.
      :rtype: ogr.FieldDefn