code: def dump_file(filename, head=None):
      """Dumps a file content into log.info.
  
      If head is not None, will be dumped before the file content.
      """
      if head is None:
          log.info("%s", filename)
      else:
          log.info(head)
      file = open(filename)
      try:
          log.info(file.read())
      finally:
          file.close()
  
imports: import os
  import re
  from ..core import Command
  from ..errors import DistutilsExecError
  from ..sysconfig import customize_compiler
  from distutils._log import log
label_desc: Use image node_id 1 for calling a global function with example usage: dump_file(filename, head) without return types