code: def rowcol(
      transform,
      xs,
      ys,
      zs=None,
      op=math.floor,
      precision=None,
      **rpc_options,
  ):
      """Get rows and cols of the pixels containing (x, y).
  
      Parameters
      ----------
      transform : Affine or sequence of GroundControlPoint or RPC
          Transform suitable for input to AffineTransformer, GCPTransformer, or RPCTransformer.
      xs : list or float
          x values in coordinate reference system.
      ys : list or float
          y values in coordinate reference system.
      zs : list or float, optional
          Height associated with coordinates. Primarily used for RPC based
          coordinate transformations. Ignored for affine based
          transformations. Default: 0.
      op : function
          Function to convert fractional pixels to whole numbers (floor, ceiling,
          round).
      precision : int or float, optional
          This parameter is unused, deprecated in rasterio 1.3.0, and
          will be removed in version 2.0.0.
      rpc_options : dict, optional
          Additional arguments passed to GDALCreateRPCTransformer.
  
      Returns
      -------
      rows : list of ints
          list of row indices
      cols : list of ints
          list of column indices
  
      """
      if precision is not None:
          warnings.warn(
              "The precision parameter is unused, deprecated, and will be removed in 2.0.0.",
              RasterioDeprecationWarning,
          )
  
      transformer_cls = get_transformer(transform, **rpc_options)
      with transformer_cls() as transformer:
          return transformer.rowcol(xs, ys, zs=zs, op=op)
  
imports: from contextlib import ExitStack
  from functools import partial
  import math
  import numpy
  import warnings
  from affine import Affine
  from rasterio.env import env_ctx_if_needed
  from rasterio._transform import _transform_from_gcps, RPCTransformerBase, GCPTransformerBase
  from rasterio.enums import TransformDirection, TransformMethod
  from rasterio.control import GroundControlPoint
  from rasterio.rpc import RPC
  from rasterio.errors import TransformError, RasterioDeprecationWarning
label_desc: Use image node_id 8 for calling a global function with example usage: rowcol(transform, xs, ys, zs, op, precision) and returns: transformer