parameters: (obj)
return_statement: return isinstance(obj, (nn.Cell, ops.Primitive)) or _is_dataclass_instance(obj)
docstring: Confirm the obj is class instance.
docstring_summary: Confirm the obj is class instance.
docstring_tokens: Confirm the obj is class instance .
function: def _is_class_instance(obj):
      """Confirm the obj is class instance."""
      return isinstance(obj, (nn.Cell, ops.Primitive)) or _is_dataclass_instance(obj)
function_tokens: def _is_class_instance ( obj ) : return isinstance ( obj , ( nn . Cell , ops . Primitive ) ) or _is_dataclass_instance ( obj )