code: def nougat_prediction(pdf_filename, batch_size=1):
      out_dir = tempfile.mkdtemp()
      subprocess.run(
          [
              "nougat",
              pdf_filename,
              "-o",
              out_dir,
              "--no-skipping",
              "--recompute",
              "--batchsize",
              str(batch_size),
          ],
          check=True,
      )
      md_file = os.listdir(out_dir)[0]
      with open(os.path.join(out_dir, md_file), "r") as f:
          data = f.read()
      shutil.rmtree(out_dir)
      return data
  
file_path: pdf-to-markdown/benchmark.py
imports: import argparse
  import tempfile
  import time
  from collections import defaultdict
  from tqdm import tqdm
  from marker.convert import convert_single_pdf
  from marker.logger import configure_logging
  from marker.models import load_all_models
  from marker.benchmark.scoring import score_text
  from marker.extract_text import naive_get_text
  import json
  import os
  import subprocess
  import shutil
  import fitz
  from tabulate import tabulate
label_desc: Use image node_id 1 for calling a global function with example usage: nougat_prediction(pdf_filename, batch_size) and returns: data