class_docstr: Base class for all models.
class_docstr_tok: ["Base","class","for","all","models","."]
docstr: Get field associated with given attribute.
docstr_tok: ["Get","field","associated","with","given","attribute","."]
code: def get_field(self, field_name):
      """Get field associated with given attribute."""
      for attr_name, field in self:
          if field_name == attr_name:
              return field
  
      raise errors.FieldNotFound("Field not found", field_name)
  
imports: import six
  from .None import parsers, errors
  from .fields import BaseField
  from .errors import ValidationError
label_desc: Use image node_id 3 for calling the Base obj's underlying member method code with example usage: obj.get_field(field_name) and returns: field