code: def test_get_minimum_dtype():
      assert get_minimum_dtype([0, 1]) == uint8
      assert get_minimum_dtype([0, 1000]) == uint16
      assert get_minimum_dtype([0, 100000]) == uint32
      assert get_minimum_dtype([-1, 0, 1]) == int8
      assert get_minimum_dtype([-1, 0, 128]) == int16
      assert get_minimum_dtype([-1, 0, 100000]) == int32
      assert get_minimum_dtype([-1.5, 0, 1.5]) == float32
      assert get_minimum_dtype([-1.5e100, 0, 1.5e100]) == float64
  
      assert get_minimum_dtype(np.array([0, 1], dtype=np.uint)) == uint8
      assert (
          get_minimum_dtype(np.array([0, 1000], dtype=np.uint))
          == uint16
      )
      assert (
          get_minimum_dtype(np.array([0, 100000], dtype=np.uint))
          == uint32
      )
      assert get_minimum_dtype(np.array([-1, 0, 1], dtype=int)) == int8
      assert (
          get_minimum_dtype(np.array([-1, 0, 128], dtype=int)) == int16
      )
      assert (
          get_minimum_dtype(np.array([-1, 0, 100000], dtype=int))
          == int32
      )
      assert (
          get_minimum_dtype(np.array([-1.5, 0, 1.5], dtype=np.float64))
          == float32
      )
  
      # Mixed type list where min/max are same type
      assert get_minimum_dtype([0, 1.5, 5]) == float32
  
imports: import numpy
  import pytest
  from .conftest import gdal_version
  import rasterio
  from rasterio import ubyte, uint8, uint16, uint32, uint64, int8, int16, int32, int64, float32, float64, complex_, complex_int16
  from rasterio.dtypes import _gdal_typename, is_ndarray, check_dtype, get_minimum_dtype, can_cast_dtype, validate_dtype, _is_complex_int, _getnpdtype, _get_gdal_dtype
label_desc: Use image node_id 6 for calling a global function with example usage: test_get_minimum_dtype() without return types