code: def __init__(self, *args, **kwds):
      if "size_limit" not in kwds:
          raise ValueError(
              "'size_limit' must be passed as a keyword " "argument"
          )
      self.size_limit = kwds.pop("size_limit")
      if len(args) > 1:
          raise TypeError(
              "expected at most 1 arguments, got %d" % len(args)
          )
      if len(args) == 1 and len(args[0]) + len(kwds) > self.size_limit:
          raise ValueError(
              "Tried to initialize LimitedSizedDict with more "
              "value than permitted with 'limit_size'"
          )
      super(LimitedSizeDict, self).__init__(*args, **kwds)
  
file_path: snips-nlu/snips_nlu/common/dict_utils.py
imports: from collections import OrderedDict
label_desc: Use image node_id 1 to create a new LimitedSizeDict object from inherited base classes: OrderedDict with example: obj = LimitedSizeDict()