code: def _get_path(path):
      
  
      if isinstance(path, (six.string_types, bytes)):
          return path
      path_type = type(path)
      try:
          path_repr = path_type.__fspath__(path)
      except AttributeError:
          return
      if isinstance(path_repr, (six.string_types, bytes)):
          return path_repr
      return
docs: Fetch the string value from a path-like object
  
      Returns **None** if there is no string value.