code: def test_protocol(obj: Any, ty: Any, ok: bool):
      assert isinstance(obj, ty) == ok
  
file_path: camphr/packages/camphr/tests/test_doc.py
imports: from camphr.doc import Doc, DocProto, Ent, EntProto, Span, SpanProto, Token, TokenProto
  from typing import Any, List
  import hypothesis.strategies
  from hypothesis import given
  import pytest
label_desc: Use image node_id 3 for calling a global function with example usage: test_protocol(obj, ty, ok) without return types