code: def merge_java_mf_dir(json_file, out_manifest, input_dir):
      manifest = os.path.join(input_dir, "META-INF", "MANIFEST.MF")
  
      old_lines = []
      if os.path.isfile(manifest):
          with open(manifest, "r") as f:
              old_lines = f.readlines()
  
      with open(out_manifest, "w") as f:
          f.write(merge_java_content(old_lines, json_file))
  
imports: import base64
  import json
  import os
  import re
  import sys
  import shutil
  import tempfile
  import textwrap
  import zipfile
label_desc: Use image node_id 6 for calling a global function with example usage: merge_java_mf_dir(json_file, out_manifest, input_dir) without return types