code: def test_casts_none():
      """#2778: implicit casting from None to object (not pointer)"""
      a = m.NoneCastTester()
      assert m.ok_obj_or_none(a) == -1
      a = m.NoneCastTester(4)
      assert m.ok_obj_or_none(a) == 4
      a = m.NoneCastTester(None)
      assert m.ok_obj_or_none(a) == -1
      assert m.ok_obj_or_none(None) == -1
  
imports: import sys
  import pytest
  import env
  from pybind11_tests import ConstructorStats
  from pybind11_tests import methods_and_attributes
label_desc: Use image node_id 14 for calling a global function with example usage: test_casts_none() without return types