code: def test_map_delitem():
      mm = m.MapStringDouble()
      mm["a"] = 1
      mm["b"] = 2.5
  
      assert list(mm) == ["a", "b"]
      assert list(mm.items()) == [("a", 1), ("b", 2.5)]
      del mm["a"]
      assert list(mm) == ["b"]
      assert list(mm.items()) == [("b", 2.5)]
  
      um = m.UnorderedMapStringDouble()
      um["ua"] = 1.1
      um["ub"] = 2.6
  
      assert sorted(list(um)) == ["ua", "ub"]
      assert sorted(list(um.items())) == [("ua", 1.1), ("ub", 2.6)]
      del um["ua"]
      assert sorted(list(um)) == ["ub"]
      assert sorted(list(um.items())) == [("ub", 2.6)]
  
file_path: coremltools/deps/pybind11/tests/test_stl_binders.py
imports: import pytest
  from pybind11_tests import stl_binders
label_desc: Use image node_id 9 for calling a global function with example usage: test_map_delitem() without return types