code: def graph_replace(
      outputs: Sequence[Variable],
      replace: Optional[ReplaceTypes] = None,
      *,
      strict=True,
  ) -> list[Variable]:
      ...
  
imports: import warnings
  from collections.abc import Iterable, Mapping, Sequence
  from functools import partial, singledispatch
  from typing import Optional, Union, cast, overload
  from pytensor.graph.basic import Apply, Constant, Variable, io_toposort, truncated_graph_inputs
  from pytensor.graph.fg import FunctionGraph
  from pytensor.graph.op import Op
label_desc: Use image node_id 6 for calling a global function with example usage: graph_replace(outputs, replace) without return types