Returns True if obj is a dataclass or an instance of a dataclass.
dataclasses/is_dataclass
is_dataclass