code: def extract_path_from_uri(dataset_path: str) -> str:
      """
      Preprocesses `dataset_path` and removes remote filesystem (e.g. removing `s3://`).
  
      Args:
          dataset_path (`str`):
              Path (e.g. `dataset/train`) or remote uri (e.g. `s3://my-bucket/dataset/train`) of the dataset directory.
      """
      if "://" in dataset_path:
          dataset_path = dataset_path.split("://")[1]
      return dataset_path
  
file_path: datasets/src/datasets/filesystems/__init__.py
imports: import importlib
  import shutil
  import threading
  import warnings
  from typing import List
  import fsspec
  import fsspec.asyn
  from fsspec.implementations.local import LocalFileSystem
  from ..utils.deprecation_utils import deprecated
  from .None import compression
label_desc: Use image node_id 1 for calling a global function with example usage: extract_path_from_uri(dataset_path) and returns: dataset_path