code: def test_isinstance():
      from pybind11_tests import test_isinstance, Pet, Dog
  
      objects = [tuple(), dict(), Pet("Polly", "parrot")] + [
          Dog("Molly")
      ] * 4
      expected = (True, True, True, True, True, False, False)
      assert test_isinstance(objects) == expected
  
imports: import pytest
label_desc: Use image node_id 3 for calling a global function with example usage: test_isinstance() without return types