code: def _check_isinstance(left, right, obj):
      if not isinstance(left, obj):
          raise AssertionError(
              f"{obj} Expected type {obj}, found {type(left)} instead"
          )
      elif not isinstance(right, obj):
          raise AssertionError(
              f"{obj} Expected type {obj}, found {type(right)} instead"
          )
  
file_path: cudf/python/cudf/cudf/testing/testing.py
imports: from __future__ import annotations
  from typing import Union
  import cupy
  import numpy
  import pandas
  import cudf
  from cudf._lib.unary import is_nan
  from cudf.api.types import is_categorical_dtype, is_numeric_dtype, is_string_dtype
  from cudf.core.missing import NA, NaT
label_desc: Use image node_id 2 for calling a global function with example usage: _check_isinstance(left, right, obj) without return types