def is_storage(file, storage=None):
    """
    Check if file is a local file or a storage file.

    Args:
        file (str or int): file path, URL or file descriptor.
        storage (str): Storage name.

    Returns:
        bool: return True if file is not local.
    """
    if storage:
        return True
    elif isinstance(file, int):
        return False
    split_url = file.split("://", 1)
    if len(split_url) == 2 and split_url[0].lower() != "file":
        return True
    return False