code: def namedtuple_with_defaults(typename, field_descr, defaults=()):
      T = NamedTuple(typename, field_descr)
      T.__new__.__defaults__ = tuple(defaults)
      return T
  
imports: import os
  import shutil
  import sys
  import tempfile
  import zlib
  import base64
  from functools import wraps
  from io import BytesIO
  from itertools import takewhile
  import re
  from metaflow.exception import MetaflowUnknownUser, MetaflowInternalError
  from typing import NamedTuple
label_desc: Use image node_id 1 for calling a global function with example usage: namedtuple_with_defaults(typename, field_descr, defaults) and returns: T