code: def replace_string_in_line(search, replace, filename):
      """Replace with sed when regex is required."""
      with open(filename, "r") as source:
          content = source.read()
      with open(filename, "w") as source:
          source.write(re.sub(search, replace, content))
  
imports: import argparse
  import os
  import re
  import subprocess
  import time
label_desc: Use image node_id 3 for calling a global function with example usage: replace_string_in_line(search, replace, filename) without return types