code: def emplace(self, key, value):
      if not isinstance(key, (int, str)):
          raise TypeError(f"key must be a int or str not {type(key)}.")
      if not isinstance(value, NgramPart):
          raise TypeError(
              f"value must be a NGramPart not {type(value)}."
          )
      if key not in self:
          self.added_keys.append(key)
          self[key] = value
      return self[key]
  
imports: from enum import IntEnum
  from typing import List
  import numpy
  from onnx.reference.op_run import OpRun
label_desc: Use image node_id 2 for calling the IntMap obj's underlying member method code with example usage: obj.emplace(key, value) and returns: self