code: def test_accepts_npfloating(self):
      # regression test for #16466
      grid64 = mgrid[0.1:0.33:0.1,]
      grid32 = mgrid[
          np.float32(0.1) : np.float32(0.33) : np.float32(0.1),
      ]
      assert_array_almost_equal(grid64, grid32)
      # At some point this was float64, but NEP 50 changed it:
      assert grid32.dtype == np.float32
      assert grid64.dtype == np.float64
  
      # different code path for single slice
      grid64 = mgrid[0.1:0.33:0.1]
      grid32 = mgrid[
          np.float32(0.1) : np.float32(0.33) : np.float32(0.1)
      ]
      assert_(grid32.dtype == np.float64)
      assert_array_almost_equal(grid64, grid32)
  
imports: import pytest
  import numpy
  from numpy.testing import assert_, assert_equal, assert_array_equal, assert_almost_equal, assert_array_almost_equal, assert_raises, assert_raises_regex
  from numpy.lib._index_tricks_impl import mgrid, ogrid, ndenumerate, fill_diagonal, diag_indices, diag_indices_from, index_exp, ndindex, c_, r_, s_, ix_
label_desc: Use image node_id 6 for calling the TestGrid obj's underlying member method code with example usage: obj.test_accepts_npfloating() without return types