class_docstr: A structure for storing masks and their related data in batched format.
  Implements basic filtering and concatenation.
class_docstr_tok: ["A","structure","for","storing","masks","and","their","related","data","in","batched","format",".","Implements","basic","filtering","and","concatenation","."]
code: def __setitem__(self, key: str, item: Any) -> None:
      assert isinstance(
          item, (list, np.ndarray, paddle.Tensor)
      ), "MaskData only supports list, numpy arrays, and paddle tensors."
      self._stats[key] = item
  
imports: import numpy
  import paddle
  import math
  from copy import deepcopy
  from itertools import product
  from typing import Any, Dict, Generator, ItemsView, List, Tuple
label_desc: Use image node_id 2 for calling the MaskData obj's underlying member method code with example usage: obj.__setitem__(key, item) without return types