code: def bounds_handler(ctx, param, value):
      """Handle different forms of bounds."""
      retval = from_like_context(ctx, param, value)
      if retval is None and value is not None:
          try:
              value = value.strip(", []")
              retval = tuple(
                  float(x) for x in re.split(r"[,\s]+", value)
              )
              assert len(retval) == 4
              return retval
          except Exception:
              raise click.BadParameter(
                  "{0!r} is not a valid bounding box representation".format(
                      value
                  )
              )
      else:  # pragma: no cover
          return retval
  
file_path: rasterio/rasterio/rio/options.py
imports: import logging
  import os
  import re
  import click
  import rasterio
  import rasterio.shutil
  from rasterio._path import _parse_path, _UnparsedPath
label_desc: Use image node_id 10 for calling a global function with example usage: bounds_handler(ctx, param, value) and returns: retval, retval