code: def test_isinstance_custom() -> None:
      a = da.ones(10)
      hlgc = HLGCollection(a)
      nhlgc = NotHLGCollection(a)
  
      assert isinstance(hlgc, DaskCollection)
      assert isinstance(nhlgc, DaskCollection)
  
      assert isinstance(nhlgc, DaskCollection)
      assert not isinstance(nhlgc, HLGDaskCollection)
  
imports: from __future__ import annotations
  from collections.abc import Hashable, Mapping, Sequence
  from typing import Any
  import pytest
  import dask
  import dask.threaded
  from dask.base import DaskMethodsMixin, dont_optimize, tokenize
  from dask.context import globalmethod
  from dask.delayed import Delayed, delayed
  from dask.typing import DaskCollection, Graph, HLGDaskCollection, Key, NestedKeys, PostComputeCallable, PostPersistCallable
label_desc: Use image node_id 7 for calling a global function with example usage: test_isinstance_custom() without return types