code: def is_dataclass(obj):
      """Returns True if obj is a dataclass or an instance of a
      dataclass."""
      return hasattr(obj, _FIELDS)
  
imports: import re
  import sys
  import copy
  import types
  import inspect
  import keyword
label_desc: Use image node_id 24 for calling a global function with example usage: is_dataclass(obj) and returns: hasattr