code: def _split_rename_spec(spec):
      parts = util.shlex_split(spec)
      if len(parts) == 2:
          return parts
      if len(parts) == 1:
          return ".*", parts[0]
      raise ResourceFormatError(
          f"invalid rename spec {spec!r}: expected 'PATTERN REPL' or 'NAME'"
      )
  
imports: import collections
  import copy
  import logging
  import operator
  import pprint
  from guild import util
label_desc: Use image node_id 11 for calling a global function with example usage: _split_rename_spec(spec) and returns: parts, str,  parts