class_docstr: The reproduction of the reported issue requires specific input that
  extensions may break the issue conditions, so the reproducer is
  implemented as a separate test class. Do not extend this test with
  other tests!
class_docstr_tok: ["The","reproduction","of","the","reported","issue","requires","specific","input","that","extensions","may","break","the","issue","conditions",",","so","the","reproducer","is","implemented","as","a","separate","test","class",".","Do","not","extend","this","test","with","other","tests","!"]
code: def test_gh18335(self):
      def foo(x):
          x[0] += 1
  
      r = self.module.gh18335(foo)
      assert r == 123 + 1
  
imports: import math
  import textwrap
  import sys
  import pytest
  import threading
  import traceback
  import time
  import numpy
  from numpy.testing import IS_PYPY
  from .None import util
label_desc: Use image node_id 1 for calling the TestGH18335 obj's underlying member method code with example usage: obj.test_gh18335() without return types