code: def _is_namedtuple(x):
      """Duck typing test for namedtuple factory-generated objects."""
      return isinstance(x, tuple) and hasattr(x, "_fields")
  
imports: import enum
  import threading
  from contextlib import contextmanager
  from typing import Any, Dict, List
  import jax
  import msgpack
  import numpy
label_desc: Use image node_id 3 for calling a global function with example usage: _is_namedtuple(x) and returns: unknown