import tempfile
import shutil


def _create_back_up(path):
    """
    Creates a temporary backup file
    Args:
        path (str): Path to original file

    Returns:
        (str): Path to temporary file
    """
    temp_file = tempfile.NamedTemporaryFile(delete=False)
    shutil.copy(path, temp_file.name)
    return temp_file.name