code: def test_override_static():
      """#511: problem with inheritance + overwritten def_static"""
      b = m.MyBase.make()
      d1 = m.MyDerived.make2()
      d2 = m.MyDerived.make()
  
      assert isinstance(b, m.MyBase)
      assert isinstance(d1, m.MyDerived)
      assert isinstance(d2, m.MyDerived)
  
imports: import pytest
  import env
  from pybind11_tests import ConstructorStats, UserType
  from pybind11_tests import class_
label_desc: Use image node_id 17 for calling a global function with example usage: test_override_static() without return types