docstr: Import record batch and compare it to one of the batches
  from a JSON integration file.
  
  The schema used for importing the record batch is the one from
  the JSON file.
  
  An error is raised if importing fails or the batches differ.
  
  Parameters
  ----------
  json_path : Path
      The path to the JSON file
  num_batch : int
      Number of the record batch in the JSON file
  c_array_ptr : cffi pointer value
      Pointer to the ``ArrowArray`` struct to import from.
docstr_tok: ["Import","record","batch","and","compare","it","to","one","of","the","batches","from","a","JSON","integration","file",".","The","schema","used","for","importing","the","record","batch","is","the","one","from","the","JSON","file",".","An","error","is","raised","if","importing","fails","or","the","batches","differ",".","Parameters","--","--","--","--","--","json_path",":","Path","The","path","to","the","JSON","file","num_batch",":","int","Number","of","the","record","batch","in","the","JSON","file","c_array_ptr",":","cffi","pointer","value","Pointer","to","the","``","ArrowArray","``","struct","to","import","from","."]
code: def import_batch_and_compare_to_json(
      self, json_path: os.PathLike, num_batch: int, c_array_ptr: object
  ):
      """
      Import record batch and compare it to one of the batches
      from a JSON integration file.
  
      The schema used for importing the record batch is the one from
      the JSON file.
  
      An error is raised if importing fails or the batches differ.
  
      Parameters
      ----------
      json_path : Path
          The path to the JSON file
      num_batch : int
          Number of the record batch in the JSON file
      c_array_ptr : cffi pointer value
          Pointer to the ``ArrowArray`` struct to import from.
      """
  
imports: from abc import ABC, abstractmethod
  import os
  import subprocess
  import typing
  from .util import log
label_desc: Use image node_id 2 for calling the CDataImporter obj's underlying member method code with example usage: obj.import_batch_and_compare_to_json(json_path, num_batch, c_array_ptr) without return types