parameters: (self, record, field)
return_statement: return record.id in self._get_field_cache(record, field)
docstring: Return whether ``record`` has a value for ``field``.
docstring_summary: Return whether ``record`` has a value for ``field``.
docstring_tokens: Return whether record has a value for field .
function: def contains(self, record, field):
          """ Return whether ``record`` has a value for ``field``. """
          return record.id in self._get_field_cache(record, field)
function_tokens: def contains ( self , record , field ) : return record . id in self . _get_field_cache ( record , field )