hunk.code_window:   DESERIALIZE_SEQUENCE(PyTuple_New, PyTuple_SetItem)
   }
   Status SerializeDict(std::vector<PyObject*> dicts, std::shared_ptr<Array>* out) {
     DictBuilder result;
  
hunk.labels: keep keep keep replace keep
hunk.after_edit: Status SerializeDict(std::vector<PyObject*> dicts, int32_t recursion_depth, std::shared_ptr<Array>* out) {
  
hunk.file_path: python/src/pynumbuf/adapters/python.cc
hunk.type: replace
file: #ifndef PYNUMBUF_NUMPY_H
  #define PYNUMBUF_NUMPY_H
  
  #include <arrow/api.h>
  #include <Python.h>
  
  #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
  #define NO_IMPORT_ARRAY
  #define PY_ARRAY_UNIQUE_SYMBOL NUMBUF_ARRAY_API
  #include <numpy/arrayobject.h>
  
  #include <numbuf/tensor.h>
  #include <numbuf/sequence.h>
  
  namespace numbuf {
  
  arrow::Status SerializeArray(PyArrayObject* array, SequenceBuilder& builder, std::vector<PyObject*>& subdicts);
  arrow::Status DeserializeArray(std::shared_ptr<arrow::Array> array, int32_t offset, PyObject* base, PyObject** out);
  
  }
  
  #endif
  