def METHOD_NAME(
    self,
    remote_file_name: str,
    file_path: Union[pathlib.Path, str],
    *,
    overwrite: bool = False,
):
    """Upload ``file_path`` as a file named ``remote_file_name``.
    Both ``file_path`` and ``remote_file_name`` can be specified as format strings.
    See :func:`~.composer.utils.file_helpers.format_name_with_dist` for more information.
    .. seealso:: :doc:`Uploading Files</trainer/file_uploading>` for notes for file uploading.
    Args:
        remote_file_name (str): A format string for the name of the file.
        file_path (str | pathlib.Path): A format string for the file path.
        overwrite (bool, optional): Whether to overwrite an existing file with the same ``remote_file_name``.
            (default: ``False``)
    """
    file_path = format_name_with_dist(format_str=str(file_path), run_name=self._state.run_name)
    file_path = pathlib.Path(file_path)
    for destination in self.destinations:
        destination.METHOD_NAME(
            state=self._state,
            remote_file_name=format_name_with_dist(format_str=remote_file_name, run_name=self._state.run_name),
            file_path=file_path,
            overwrite=overwrite,
        )