code: def test_basic(self):
      assert_equal(
          eye(4),
          array(
              [[1, 0, 0, 0], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]
          ),
      )
  
      assert_equal(
          eye(4, dtype="f"),
          array(
              [[1, 0, 0, 0], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]],
              "f",
          ),
      )
  
      assert_equal(eye(3) == 1, eye(3, dtype=bool))
  
imports: from numpy.testing import assert_equal, assert_array_equal, assert_array_max_ulp, assert_array_almost_equal, assert_raises, assert_
  from numpy import arange, add, fliplr, flipud, zeros, ones, eye, array, diag, histogram2d, tri, mask_indices, triu_indices, triu_indices_from, tril_indices, tril_indices_from, vander
  import numpy
  import pytest
label_desc: Use image node_id 1 for calling the TestEye obj's underlying member method code with example usage: obj.test_basic() without return types