code: def test_meta_from_array_type_inputs():
      x = meta_from_array(np.ndarray, ndim=2, dtype=np.float32)
      assert isinstance(x, np.ndarray)
      assert x.ndim == 2
      assert x.dtype == np.float32
  
      x = da.Array(
          {("x", 0, 0): (np.ones, (5, 5))},
          name="x",
          chunks=(5, 5),
          shape=(5, 5),
          meta=np.ndarray,
          dtype=float,
      )
      assert_eq(x, x)
  
      assert (
          da.from_array(
              np.ones(5).astype(np.int32), meta=np.ndarray
          ).dtype
          == np.int32
      )
  
file_path: dask/dask/array/tests/test_array_utils.py
imports: from __future__ import annotations
  import numpy
  import pytest
  import dask.array
  from dask.array.core import Array
  from dask.array.utils import assert_eq, meta_from_array
  from dask.local import get_sync
label_desc: Use image node_id 3 for calling a global function with example usage: test_meta_from_array_type_inputs() without return types