code: def copy(
      src: PathType, dst: PathType, overwrite: bool = False
  ) -> None:
      """Copy a file from the source to the destination."""
      src_fs = _get_filesystem(src)
      dst_fs = _get_filesystem(dst)
      if src_fs is dst_fs:
          src_fs.copy(src, dst, overwrite=overwrite)
      else:
          if not overwrite and exists(dst):
              raise OSError(
                  (
                      "Destination file %r already exists and argument `overwrite` is "
                      "false."
                  )
                  % dst
              )
          with open(src, mode="rb") as f_src:
              contents = f_src.read()
          with open(dst, mode="wb") as f_dst:
              f_dst.write(contents)
  
imports: from typing import Any, Callable, Iterable, List, Optional, Tuple, Type
  from tfx.dsl.io import filesystem
  from tfx.dsl.io import filesystem_registry
  from tfx.dsl.io.filesystem import PathType
  import tfx.dsl.io.plugins.tensorflow_gfile
  import tfx.dsl.io.plugins.local
label_desc: Use image node_id 3 for calling a global function with example usage: copy(src, dst, overwrite) without return types