parameters: (obj)
return_statement: return hasattr(cls, _FIELDS)
docstring: Returns True if obj is a dataclass or an instance of a
      dataclass.
docstring_summary: Returns True if obj is a dataclass or an instance of a
      dataclass.
docstring_tokens: Returns True if obj is a dataclass or an instance of a dataclass .
function: def is_dataclass(obj):
      """Returns True if obj is a dataclass or an instance of a
      dataclass."""
      cls = obj if isinstance(obj, type) else type(obj)
      return hasattr(cls, _FIELDS)
function_tokens: def is_dataclass ( obj ) : cls = obj if isinstance ( obj , type ) else type ( obj ) return hasattr ( cls , _FIELDS )