code: def write_file_content(filename, content):
      """
      Write content to file, but only if it differs from the current one.
      """
      if os.path.isfile(filename):
          with open(filename, "r") as f:
              old_content = f.read()
  
          if old_content == content:
              return
  
      dirname = os.path.dirname(filename)
      if not os.path.isdir(dirname):
          os.makedirs(dirname)
  
      with open(filename, "w") as f:
          f.write(content)
  
imports: import re
  import os
  import sys
  from distutils.util import get_platform
  import numpy
  from .system_info import combine_dict
label_desc: Use image node_id 14 for calling a global function with example usage: write_file_content(filename, content) without return types