code: def astuple(obj, *, tuple_factory=tuple):
      """Return the fields of a dataclass instance as a new tuple of field values.
  
      Example usage::
  
        @dataclass
        class C:
            x: int
            y: int
  
        c = C(1, 2)
        assert astuple(c) == (1, 2)
  
      If given, 'tuple_factory' will be used instead of built-in tuple.
      The function applies recursively to field values that are
      dataclass instances. This will also look into built-in containers:
      tuples, lists, and dicts.
      """
  
      if not _is_dataclass_instance(obj):
          raise TypeError(
              "astuple() should be called on dataclass instances"
          )
      return _astuple_inner(obj, tuple_factory)
  
imports: import re
  import sys
  import copy
  import types
  import inspect
  import keyword
  import builtins
  import functools
  import itertools
  import abc
  import _thread
  from types import FunctionType, GenericAlias
label_desc: Use image node_id 35 for calling a global function with example usage: astuple(obj) and returns: _astuple_inner