code: def pathcase(string):
      
      string = snakecase(string)
      if not string:
          return string
      return re.sub(r"_", "/", string)
docs: Convert string into path case.
      Join punctuation with slash.
  
      Args:
          string: String to convert.
  
      Returns:
          string: Path cased string.