code: def copy_file(src: str, dst: str, overwrite: bool = False):
      """Copies a single file from source to destination."""
  
      if overwrite and fileio.exists(dst):
          fileio.remove(dst)
      dst_dir = os.path.dirname(dst)
      fileio.makedirs(dst_dir)
      fileio.copy(src, dst, overwrite=overwrite)
  
imports: import os
  import re
  import tempfile
  from typing import List, TypeVar, Iterable
  from tfx.dsl.io import fileio
  from google.protobuf import json_format
  from google.protobuf import text_format
  from google.protobuf.message import Message
label_desc: Use image node_id 2 for calling a global function with example usage: copy_file(src, dst, overwrite) without return types