code: def test_Dict():
      x, y, z = symbols("x y z")
      d = Dict({x: 1, y: 2, z: 3})
      assert d[x] == 1
      assert d[y] == 2
      raises(KeyError, lambda: d[2])
      raises(KeyError, lambda: d["2"])
      assert len(d) == 3
      assert set(d.keys()) == {x, y, z}
      assert set(d.values()) == {S.One, S(2), S(3)}
      assert d.get(5, "default") == "default"
      assert d.get("5", "default") == "default"
      assert x in d and z in d and 5 not in d and "5" not in d
      assert d.has(x) and d.has(1)  # SymPy Basic .has method
  
      # Test input types
      # input - a Python dict
      # input - items as args - SymPy style
      assert Dict({x: 1, y: 2, z: 3}) == Dict((x, 1), (y, 2), (z, 3))
  
      raises(TypeError, lambda: Dict(((x, 1), (y, 2), (z, 3))))
      with raises(NotImplementedError):
          d[5] = 6  # assert immutability
  
      assert set(d.items()) == {
          Tuple(x, S.One),
          Tuple(y, S(2)),
          Tuple(z, S(3)),
      }
      assert set(d) == {x, y, z}
      assert str(d) == "{x: 1, y: 2, z: 3}"
      assert d.__repr__() == "{x: 1, y: 2, z: 3}"
  
      # Test creating a Dict from a Dict.
      d = Dict({x: 1, y: 2, z: 3})
      assert d == Dict(d)
  
      # Test for supporting defaultdict
      d = defaultdict(int)
      assert d[x] == 0
      assert d[y] == 0
      assert d[z] == 0
      assert Dict(d)
      d = Dict(d)
      assert len(d) == 3
      assert set(d.keys()) == {x, y, z}
      assert set(d.values()) == {S.Zero, S.Zero, S.Zero}
  
imports: from collections import defaultdict
  from sympy.core.basic import Basic
  from sympy.core.containers import Dict, Tuple
  from sympy.core.numbers import Integer
  from sympy.core.kind import NumberKind
  from sympy.matrices.kind import MatrixKind
  from sympy.core.singleton import S
  from sympy.core.symbol import symbols
  from sympy.core.sympify import sympify
  from sympy.matrices.dense import Matrix
  from sympy.sets.sets import FiniteSet
  from sympy.core.containers import tuple_wrapper, TupleKind
  from sympy.core.expr import unchanged
  from sympy.core.function import Function, Lambda
  from sympy.core.relational import Eq
  from sympy.testing.pytest import raises
  from sympy.utilities.iterables import is_sequence, iterable
  from sympy.abc import x, y
label_desc: Use image node_id 13 for calling a global function with example usage: test_Dict() without return types