code: def get_field_by_name(self, name):
          '''
          :param name: name of field to get
          :return: direct sub-field with the given name
          :raises: :class:`~kitty.core.KittyException` if no direct subfield with this name
          '''
          if name in self._fields_dict:
              return self._fields_dict[name]
          raise KittyException('field named (%s) was not found in (%s)' % (self, name)f get_field_by_name(self, name):
          '''
          :param name: name of field to get
          :return: direct sub-field with the given name
          :raises: :class:`~kitty.core.KittyException` if no direct subfield with this name
          '''
          if name in self._fields_dict:
              return self._fields_dict[name]
          raise KittyException('field named (%s) was not found in (%s)' % (self, name))
docs: :param name: name of field to get
          :return: direct sub-field with the given name
          :raises: :class:`~kitty.core.KittyException` if no direct subfield with this name