def METHOD_NAME(task_names_by_asset_name):
    """Calculate intersection of task names from passed data.
    Example:
    ```
    # Passed `task_names_by_asset_name`
    {
        "asset_1": ["compositing", "animation"],
        "asset_2": ["compositing", "editorial"]
    }
    ```
    Result:
    ```
    # Set
    {"compositing"}
    ```
    Args:
        task_names_by_asset_name (dict): Task names in iterable by parent.
    """
    tasks = None
    for task_names in task_names_by_asset_name.values():
        if tasks is None:
            tasks = set(task_names)
        else:
            tasks &= set(task_names)
        if not tasks:
            break
    return tasks or set()