code: def strip_prefix(
      paths: Sequence[str], ignore_set: Set[str] = set()
  ) -> Tuple[str, ...]:
      """
      Strips the common prefix of all the given paths.
  
      Args:
          paths: the paths to strip
          ignore_set: set of path names to ignore when computing the prefix.
  
      Returns:
          List with the same length as `paths` without common prefixes.
      """
  
      paths_to_check = [
          os.path.split(os.path.normpath(path))[0]
          for path in paths
          if path not in ignore_set
      ]
  
      if len(paths_to_check) == 0:
          return tuple(paths)
  
      prefix = os.path.commonpath(paths_to_check)
      stripped = tuple(
          [
              path
              if path in ignore_set
              else os.path.relpath(path, prefix)
              for path in paths
          ]
      )
  
      return stripped
  
imports: import os
  from abc import abstractmethod
  from dataclasses import dataclass
  from typing import Any, Callable, List, Optional, Sequence, Set, Tuple, Union
  from llm_studio.src.nesting import Dependency
label_desc: Use image node_id 3 for calling a global function with example usage: strip_prefix(paths, ignore_set) and returns: stripped, tuple