from typing import List
from typing import Dict


def get_largest_num_objects(x: List[Dict]):
    """
    Get the largest number of objects in batch
    :param x: Batch data
    :return:
        (int)
    """
    largest = 0
    for sample, _ in x:
        # (batch, num_objects, history_step, dimension)
        objects = sample["others"]

        num_objects = len(objects)
        if num_objects > largest:
            largest = num_objects
    return largest