code: def _is_dataclass_instance(obj):
      """Returns True if obj is an instance of a dataclass."""
      return hasattr(type(obj), _FIELDS)
  
imports: import re
  import sys
  import copy
  import types
  import inspect
  import keyword
  import functools
  import itertools
  import abc
  import _thread
  from types import FunctionType, GenericAlias
label_desc: Use image node_id 31 for calling a global function with example usage: _is_dataclass_instance(obj) and returns: hasattr