code: def split(
      pattern,
      string,
      *args,
      maxsplit=_zero_sentinel,
      flags=_zero_sentinel,
  ):
      """Split the source string by the occurrences of the pattern,
      returning a list containing the resulting substrings.  If
      capturing parentheses are used in pattern, then the text of all
      groups in the pattern are also returned as part of the resulting
      list.  If maxsplit is nonzero, at most maxsplit splits occur,
      and the remainder of the string is returned as the final element
      of the list."""
      if args:
          if maxsplit is not _zero_sentinel:
              raise TypeError(
                  "split() got multiple values for argument 'maxsplit'"
              )
          maxsplit, *args = args
          if args:
              if flags is not _zero_sentinel:
                  raise TypeError(
                      "split() got multiple values for argument 'flags'"
                  )
              flags, *args = args
              if args:
                  raise TypeError(
                      "split() takes from 2 to 4 positional arguments "
                      "but %d were given" % (4 + len(args))
                  )
  
          import warnings
  
          warnings.warn(
              "'maxsplit' is passed as positional argument",
              DeprecationWarning,
              stacklevel=2,
          )
  
      return _compile(pattern, flags).split(string, maxsplit)
  
imports: import enum
  from .None import _compiler, _parser
  import functools
  import _sre
  import copyreg
label_desc: Use image node_id 6 for calling a global function with example usage: split(pattern, string) and returns: _compile