code: def get_dataset_path(parsed_url):
      """
      The dataset path is different than the one in `_parsed_dataset_url` for some filesystems.
      For example s3fs expects the bucket name to be included in the path and doesn't support
      paths that start with a `/`
      """
      if parsed_url.scheme.lower() in ["file", "hdfs"]:
          return parsed_url.path
  
      _url = strip_protocol(urlunparse(parsed_url))
      return _url
  
file_path: petastorm/petastorm/fs_utils.py
imports: import logging
  import fsspec
  import pyarrow
  import six
  from six.moves.urllib.parse import urlparse, urlunparse
  from fsspec.core import strip_protocol
  from fsspec.utils import update_storage_options
  from petastorm.hdfs.namenode import HdfsNamenodeResolver, HdfsConnector
label_desc: Use image node_id 1 for calling a global function with example usage: get_dataset_path(parsed_url) and returns: _url, parsed_url