code: def _set_default(type_param, default):
      if isinstance(default, (tuple, list)):
          type_param.__default__ = tuple(
              (
                  typing._type_check(d, "Default must be a type")
                  for d in default
              )
          )
      elif default != _marker:
          if (
              isinstance(type_param, ParamSpec) and default is ...
          ):  # ... not valid <3.11
              type_param.__default__ = default
          else:
              type_param.__default__ = typing._type_check(
                  default, "Default must be a type"
              )
      else:
          type_param.__default__ = None
  
imports: import abc
  import collections
  import collections.abc
  import functools
  import inspect
  import operator
  import sys
  import types
  import typing
  import warnings
label_desc: Use image node_id 7 for calling a global function with example usage: _set_default(type_param, default) without return types