code: def band(ds, bidx):
      """A dataset and one or more of its bands
  
      Parameters
      ----------
      ds: dataset object
          An opened rasterio dataset object.
      bidx: int or sequence of ints
          Band number(s), index starting at 1.
  
      Returns
      -------
      Band
      """
      return Band(ds, bidx, set(ds.dtypes).pop(), ds.shape)
  
imports: from collections import namedtuple
  from contextlib import ExitStack
  import glob
  import logging
  from logging import NullHandler
  import os
  import platform
  import warnings
  from rasterio._vsiopener import _opener_registration
  from rasterio._show_versions import show_versions
  from rasterio._version import gdal_version, get_geos_version, get_proj_version
  from rasterio.crs import CRS
  from rasterio.drivers import driver_from_extension, is_blacklisted
  from rasterio.dtypes import bool_, ubyte, sbyte, uint8, int8, uint16, int16, uint32, int32, int64, uint64, float32, float64, complex_, check_dtype, complex_int16
  from rasterio.env import ensure_env_with_credentials, Env
  from rasterio.errors import RasterioIOError, DriverCapabilityError, RasterioDeprecationWarning
  from rasterio.io import DatasetReader, get_writer_for_path, get_writer_for_driver, MemoryFile
  from rasterio.profiles import default_gtiff_profile
  from rasterio.transform import Affine, guard_transform
  from rasterio._path import _parse_path, _UnparsedPath
  import rasterio._err
  import rasterio.coords
  import rasterio.enums
  import rasterio._path
label_desc: Use image node_id 3 for calling a global function with example usage: band(ds, bidx) and returns: Band