code: def _strip_leading_path_sep(pattern):
      while pattern:
          if pattern[0] != os.path.sep:
              break
          pattern = pattern[1:]
      return pattern
  
imports: import fnmatch
  import glob
  import logging
  import os
  import re
  import shutil
  from guild import util
label_desc: Use image node_id 5 for calling a global function with example usage: _strip_leading_path_sep(pattern) and returns: pattern