code: def _new_gt_255_compatible_namedtuple(*args, **kwargs):
      # Between Python 3 - 3.6.8 namedtuple can not have more than 255 fields. We use
      # our custom version of namedtuple in these cases
      if six.PY3 and sys.version_info[1] < 7:
          # Have to hide the codeblock in namedtuple_gt_255_fields.py from Python 2 interpreter
          # as it would trigger "unqualified exec is not allowed in function" SyntaxError
          from petastorm.namedtuple_gt_255_fields import (
              namedtuple_gt_255_fields,
          )
  
          namedtuple_cls = namedtuple_gt_255_fields
      else:  # Python 2 or Python 3.7 and later.
          namedtuple_cls = namedtuple
  
      return namedtuple_cls(*args, **kwargs)
  
imports: import copy
  import re
  import sys
  import warnings
  from collections import namedtuple, OrderedDict
  from decimal import Decimal
  from typing import Dict, Any, Tuple, Optional, NamedTuple
  import numpy
  import pyarrow
  import six
  from pyarrow.lib import ListType
  from pyarrow.lib import StructType
  from six import string_types
label_desc: Use image node_id 2 for calling a global function with example usage: _new_gt_255_compatible_namedtuple() and returns: namedtuple_cls