code: def test_replace():
      assert replace("abc", ("a", "b")) == "bbc"
      assert replace("abc", {"a": "Aa"}) == "Aabc"
      assert replace("abc", ("a", "b"), ("c", "C")) == "bbC"
  
file_path: sympy/sympy/utilities/tests/test_misc.py
imports: from textwrap import dedent
  import sys
  from subprocess import Popen, PIPE
  import os
  from sympy.core.singleton import S
  from sympy.testing.pytest import raises, warns_deprecated_sympy, skip_under_pyodide
  from sympy.utilities.misc import translate, replace, ordinal, rawlines, strlines, as_int, find_executable
  from sympy.external import import_module
label_desc: Use image node_id 2 for calling a global function with example usage: test_replace() without return types