code: def _deprecate_warn_missing_rvs(warn_rvs, kwargs):
      if "warn_missing_rvs" in kwargs:
          warnings.warn(
              "Argument `warn_missing_rvs` was renamed to `warn_rvs` and will be removed in a future release",
              FutureWarning,
          )
          if warn_rvs is None:
              warn_rvs = kwargs.pop("warn_missing_rvs")
          else:
              raise ValueError(
                  "Can't set both warn_rvs and warn_missing_rvs"
              )
      else:
          if warn_rvs is None:
              warn_rvs = True
      return warn_rvs, kwargs
  
imports: import warnings
  from collections import deque
  from typing import Dict, List, Optional, Sequence, Union
  import numpy
  import pytensor.tensor
  from pytensor import config
  from pytensor.graph.basic import Constant, Variable, ancestors, graph_inputs, io_toposort
  from pytensor.graph.op import compute_test_value
  from pytensor.graph.rewriting.basic import GraphRewriter, NodeRewriter
  from pytensor.tensor.variable import TensorVariable
  from typing_extensions import TypeAlias
  from pymc.logprob.abstract import MeasurableVariable, _icdf_helper, _logcdf_helper, _logprob, _logprob_helper
  from pymc.logprob.rewriting import cleanup_ir, construct_ir_fgraph
  from pymc.logprob.transform_value import TransformValuesRewrite
  from pymc.logprob.transforms import Transform
  from pymc.logprob.utils import rvs_in_graph
  from pymc.pytensorf import replace_vars_in_graphs
label_desc: Use image node_id 3 for calling a global function with example usage: _deprecate_warn_missing_rvs(warn_rvs, kwargs) and returns: warn_rvs,  kwargs