code: def merge_java_mf(json_file, out_manifest, input):
      if zipfile.is_zipfile(input):
          merge_java_mf_jar(json_file, out_manifest, input)
      elif os.path.isdir(input):
          merge_java_mf_dir(json_file, out_manifest, input)
  
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 7 for calling a global function with example usage: merge_java_mf(json_file, out_manifest, input) without return types