code: def create_bundled(d, outstream, include_files=False):
      """Write the information to an open outstream"""
      collected = collect_license(d)
      sorted_keys = sorted(collected.keys())
      outstream.write(
          "The Pytorch repository and source distributions bundle "
          "several libraries that are \n"
      )
      outstream.write("compatibly licensed.  We list these here.")
      files_to_include = []
      for k in sorted_keys:
          c = collected[k]
          files = ",\n     ".join(c["Files"])
          license_file = ",\n     ".join(c["License_file"])
          outstream.write("\n\n")
          outstream.write(f"Name: {c['Name']}\n")
          outstream.write(f"License: {c['License']}\n")
          outstream.write(f"Files: {files}\n")
          outstream.write("  For details, see")
          if include_files:
              outstream.write(" the files concatenated below: ")
              files_to_include += c["License_file"]
          else:
              outstream.write(": ")
          outstream.write(license_file)
      for fname in files_to_include:
          outstream.write("\n\n")
          outstream.write(fname)
          outstream.write("\n" + "-" * len(fname) + "\n")
          with open(fname, "r") as fid:
              outstream.write(fid.read())
  
imports: import argparse
  import os
label_desc: Use image node_id 2 for calling a global function with example usage: create_bundled(d, outstream, include_files) without return types