code: def test_should_initialize_with_argument(self):
      # Given
      sequence = [("a", 1), ("b", 2)]
      size_limit = 3
      # When
      d = LimitedSizeDict(sequence, size_limit=size_limit)
      # Then
      items = sorted(iteritems(d), key=lambda i: i[0])
      self.assertListEqual(items, sequence)
  
imports: from __future__ import unicode_literals
  import logging
  from future.builtins import object, str
  from future.utils import iteritems
  from mock import MagicMock
  from snips_nlu import __model_version__, __version__
  from snips_nlu.common.dict_utils import LimitedSizeDict
  from snips_nlu.common.log_utils import DifferedLoggingMessage
  from snips_nlu.common.utils import ranges_overlap, replace_entities_with_placeholders, parse_version
  from snips_nlu.constants import END, START
  from snips_nlu.preprocessing import tokenize_light
  from snips_nlu.tests.utils import SnipsTest
label_desc: Use image node_id 2 for calling the TestLimitedSizeDict obj's underlying member method code with example usage: obj.test_should_initialize_with_argument() without return types