code: def test_multipledispatch():
      @dispatch(int, int)
      def f(x, y):  # noqa:F811
          return x + y
  
      @dispatch(float, float)  # noqa:F811
      def f(x, y):  # noqa:F811
          return x - y
  
      assert f(1, 2) == 3
      assert f(1.0, 2.0) == -1.0
  
imports: from __future__ import annotations
  from typing import Any
  from sympy.multipledispatch import dispatch
  from sympy.multipledispatch.conflict import AmbiguityWarning
  from sympy.testing.pytest import raises, warns
  from functools import partial
label_desc: Use image node_id 2 for calling a global function with example usage: test_multipledispatch() and returns: unknown, unknown