code: def move_file(src, dest):
      
      try:
          os.replace(src, dest)
      except Exception as ex_replace:
          logger.error(f"error moving file {src} to "
                       f"{dest}. {ex_replace}")
          raise
docs: Move source file to destination.
  
      Overwrites dest.
  
      Args:
          src: str or path-like. source file
          dest: str or path-like. destination file
  
      Returns:
          None.
  
      Raises:
          FileNotFoundError: out path parent doesn't exist.
          OSError: if any IO operations go wrong.