code: def test_namespaces():
      ns1 = {}
      ns2 = {}
  
      def foo(x):
          return 1
  
      foo1 = orig_dispatch(int, namespace=ns1)(foo)
  
      def foo(x):
          return 2
  
      foo2 = orig_dispatch(int, namespace=ns2)(foo)
  
      assert foo1(0) == 1
      assert foo2(0) == 2
  
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 10 for calling a global function with example usage: test_namespaces() and returns: int, int