code: def write_python(source_str, filepath="temp_modified.py"):
      """Save `source_str` to the file located at `filepath`
  
      Parameters
      ----------
      source_str: String
          The content to write to the file at `filepath`
      filepath: String
          The filepath of the file to which `source_str` should be written
      """
      with open(filepath, "w") as f:
          f.write(source_str)
  
imports: from hyperparameter_hunter.utils.file_utils import RetryMakeDirs
  from ast import NodeVisitor, parse
  from inspect import getsource
  from operator import attrgetter
  import os
  import re
label_desc: Use image node_id 4 for calling a global function with example usage: write_python(source_str, filepath) without return types