code: def _read_array(ix, subix=None, dtype=None):
      """Change the type of a read array."""
      arr = snuggs._ctx.lookup(ix, subix)
      if dtype:
          arr = arr.astype(dtype)
      return arr
  
imports: from collections import OrderedDict, UserDict
  from contextlib import ExitStack
  import math
  from typing import Mapping
  import click
  import numpy
  import rasterio
  from rasterio._vendor import snuggs
  from rasterio.features import sieve
  from rasterio.fill import fillnodata
  from rasterio.rio import options
  from rasterio.rio.helpers import resolve_inout
  from rasterio.windows import Window
label_desc: Use image node_id 2 for calling a global function with example usage: _read_array(ix, subix, dtype) and returns: arr