code: def assert_no_pickling(obj):
      import pickle
      import pytest
  
      pytest.raises(NotImplementedError, pickle.dumps, obj)
  
imports: import sys
  import numpy
  import six
  from six.moves import cStringIO
  from .compat import optional_dep_ok
label_desc: Use image node_id 34 for calling a global function with example usage: assert_no_pickling(obj) without return types