code: def test_shared_range_inputs():
      # Check any dtype specifier will work as input
      rng0 = shared_range(np.float32, np.int32)
      assert_array_equal(rng0, shared_range("f4", "i4"))
      assert_array_equal(
          rng0, shared_range(np.dtype("f4"), np.dtype("i4"))
      )
  
file_path: nibabel/nibabel/tests/test_casting.py
imports: import os
  from platform import machine
  import numpy
  import pytest
  from numpy.testing import assert_array_equal
  from ..casting import CastingError, able_int_type, best_float, float_to_int, floor_log2, int_abs, longdouble_precision_improved, sctypes, shared_range, ulp
  from ..testing import suppress_warnings
label_desc: Use image node_id 2 for calling a global function with example usage: test_shared_range_inputs() without return types