from datetime import datetime


def timestamp_file(filename: str) -> str:
    """
    Returns the filename with a timestamp
    in front of it to prevent duplicate
    filenames from overwriting each other.
    """

    timestamp = datetime.utcnow().strftime("%Y%m%d_%H%M%S_")
    return timestamp + filename