code: def test_default_policy_singleton(get_module):
      get_handler_name = np.core.multiarray.get_handler_name
  
      # set the policy to default
      orig_policy = get_module.set_old_policy(None)
  
      assert get_handler_name() == "default_allocator"
  
      # re-set the policy to default
      def_policy_1 = get_module.set_old_policy(None)
  
      assert get_handler_name() == "default_allocator"
  
      # set the policy to original
      def_policy_2 = get_module.set_old_policy(orig_policy)
  
      # since default policy is a singleton,
      # these should be the same object
      assert (
          def_policy_1
          is def_policy_2
          is get_module.get_default_policy()
      )
  
file_path: catboost/contrib/python/numpy/py3/numpy/core/tests/test_mem_policy.py
imports: import asyncio
  import gc
  import os
  import pytest
  import numpy
  import threading
  import warnings
  from numpy.testing import extbuild, assert_warns, IS_WASM
  import sys
label_desc: Use image node_id 3 for calling a global function with example usage: test_default_policy_singleton(get_module) without return types