code: def clone_replace(
      output: Sequence[Variable],
      replace: Optional[ReplaceTypes] = None,
      **rebuild_kwds,
  ) -> 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 2 for calling a global function with example usage: clone_replace(output, replace) without return types