code: def rename(fs: fsspec.AbstractFileSystem, src: str, dst: str):
      """
      Renames the file `src` in `fs` to `dst`.
      """
      if not is_remote_filesystem(fs):
          # LocalFileSystem.mv does copy + rm, it is more efficient to simply move a local directory
          shutil.move(fs._strip_protocol(src), fs._strip_protocol(dst))
      else:
          fs.mv(src, dst, recursive=True)
  
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 3 for calling a global function with example usage: rename(fs, src, dst) without return types