code: def fortranize_double_constants(code_string):
      """
      Replaces every literal float with literal doubles
      """
      import re
  
      pattern_exp = re.compile(r"\d+(\.)?\d*[eE]-?\d+")
      pattern_float = re.compile(r"\d+\.\d*(?!\d*d)")
  
      def subs_exp(matchobj):
          return re.sub("[eE]", "d", matchobj.group(0))
  
      def subs_float(matchobj):
          return "%sd0" % matchobj.group(0)
  
      code_string = pattern_exp.sub(subs_exp, code_string)
      code_string = pattern_float.sub(subs_float, code_string)
  
      return code_string
  
imports: from sympy.abc import x, y, z
  from sympy.external import import_module
  from sympy.testing.pytest import skip
  from sympy.utilities.codegen import codegen, make_routine, get_code_generator
  import sys
  import os
  import tempfile
  import subprocess
label_desc: Use image node_id 3 for calling a global function with example usage: fortranize_double_constants(code_string) and returns: code_string, re, unknown