Remove dot ('.') while a dot is treated as a special character in backends

    Args:
        path (str): A target path string

    Returns:
        str

def replace_dots_to_underscores_at_last(path):
    """
    Remove dot ('.') while a dot is treated as a special character in backends

    Args:
        path (str): A target path string

    Returns:
        str
    """
    if path == '':
        return path
    bits = path.split('/')
    bits[-1] = bits[-1].replace('.', '_')
    return '/'.join(bits)