code: def test_compat(self):
      from xgboost.compat import lazy_isinstance
  
      a = np.array([1, 2, 3])
      assert lazy_isinstance(a, "numpy", "ndarray")
      assert not lazy_isinstance(a, "numpy", "dataframe")
  
imports: import json
  import os
  import pathlib
  import tempfile
  from pathlib import Path
  import numpy
  import pytest
  import xgboost
  from xgboost import testing
label_desc: Use image node_id 1 for calling the TestBasic obj's underlying member method code with example usage: obj.test_compat() without return types