code: def remove_all_comments(source):
      string = re.sub(
          re.compile("'''.*?'''", re.DOTALL), "", source
      )  # remove '''...''' comments
      string = re.sub(
          re.compile("(?<!('|\").)*#[^'\"]*?\n"), "\n", string
      )  # remove #...\n comments
      return string
  
imports: import ast
  import re
  import warnings
  from operator import attrgetter
  from hyperopt import space_eval
label_desc: Use image node_id 3 for calling a global function with example usage: remove_all_comments(source) and returns: string