def METHOD_NAME(self, name: str, data: np.ndarray) -> None:
    """Add data to a specified field.
    Args:
        name (str): Field name.
        data (np.ndarray): Field data: box coords as a [N, 4] numpy array.
    Raises:
        ValueError: If name already exists.
        ValueError: If the dimension of the field data does not matche the
            number of boxes.
    """
    if self.has_field(name):
        raise ValueError('Field ' + name + 'already exists')
    if len(data.shape) < 1 or len(data) != self.num_boxes():
        raise ValueError('Invalid dimensions for name data')
    self.data[name] = data