code: def genPlot(
      inputFile,
      outputFilePrefix,
      xAxisField,
      yAxisField,
      axisType,
      noLegend,
      legendNumColumn,
      legendRelative,
      legendPos,
      printXaxis,
      printYaxis,
      title,
  ):
      plots = genPlotLatex(
          inputFile,
          outputFilePrefix,
          xAxisField,
          yAxisField,
          axisType,
          noLegend,
          printXaxis,
          printYaxis,
          title,
      )
  
      legendDesc = " legend style={font=\\small} "
  
      if not noLegend:
          legendDesc = (
              "legend style={font=\\small},legend columns="
              + legendNumColumn
          )
          if legendRelative:
              legendDesc += ",legend pos=" + legendPos
          else:
              legendDesc += ",legend style={at={(" + legendPos + ")}}"
      outputFileName = outputFilePrefix + ".tex"
      fp = open(outputFileName, "w")
      latex = LATEX % (outputFileName, legendDesc, plots)
      fp.write(latex)
      fp.close()
  
      call(["pdflatex", "-shell-escape", outputFilePrefix])
      call(["rm", "-f", "*.{aux,auxlock,log}"])
      call(["rm", "-f", outputFilePrefix + "/*.{dep,dpth,log}"])
  
file_path: nmslib/previous_releases_scripts/genplot.py
imports: import argparse
  import os
  import re
  import sys
  import itertools
  import re
  from subprocess import call
label_desc: Use image node_id 8 for calling a global function with example usage: genPlot(inputFile, outputFilePrefix, xAxisField, yAxisField, axisType, noLegend, legendNumColumn, legendRelative, legendPos, printXaxis, printYaxis, title) without return types