code: def get_field(self, field_name):
          
          for attr_name, field in self:
              if field_name == attr_name:
                  return field
  
          raise errors.FieldNotFound('Field not found', field_name)
docs: Get field associated with given attribute.