code: def main(readcsv=pd_read_csv):
      data_path = Path(__file__).parent / "data" / "batch"
      infile = data_path / "qr.csv"
  
      # configure a pivoted QR object
      algo = d4p.pivoted_qr()
  
      # let's provide a file directly, not a table/array
      result1 = algo.compute(str(infile))
  
      # We can also load the data ourselfs and provide the numpy array
      data = readcsv(infile)
      _ = algo.compute(data)
  
      # pivoted QR result objects provide matrixQ, matrixR and permutationMatrix
      return result1
  
imports: from pathlib import Path
  import numpy
  from readcsv import pd_read_csv
  import daal4py
label_desc: Use image node_id 1 for calling a global function with example usage: main(readcsv) and returns: result1