code: def test_type_pickle():
      # can't actually unpickle, but we can pickle (if in namespace)
      import pickle
  
      np._ScaledFloatTestDType = SF
  
      s = pickle.dumps(SF)
      res = pickle.loads(s)
      assert res is SF
  
      del np._ScaledFloatTestDType
  
imports: import pytest
  import numpy
  from numpy.testing import assert_array_equal
  from numpy.core._multiarray_umath import _discover_array_parameters, _get_sfloat_dtype
label_desc: Use image node_id 1 for calling a global function with example usage: test_type_pickle() without return types