code: def assert_equal_predict_arrow_pandas(
      booster: lgb.Booster, data: pa.Table
  ):
      p_arrow = booster.predict(data)
      p_pandas = booster.predict(data.to_pandas())
      np_assert_array_equal(p_arrow, p_pandas, strict=True)
  
      p_raw_arrow = booster.predict(data, raw_score=True)
      p_raw_pandas = booster.predict(data.to_pandas(), raw_score=True)
      np_assert_array_equal(p_raw_arrow, p_raw_pandas, strict=True)
  
      p_leaf_arrow = booster.predict(data, pred_leaf=True)
      p_leaf_pandas = booster.predict(data.to_pandas(), pred_leaf=True)
      np_assert_array_equal(p_leaf_arrow, p_leaf_pandas, strict=True)
  
      p_pred_contrib_arrow = booster.predict(data, pred_contrib=True)
      p_pred_contrib_pandas = booster.predict(
          data.to_pandas(), pred_contrib=True
      )
      np_assert_array_equal(
          p_pred_contrib_arrow, p_pred_contrib_pandas, strict=True
      )
  
      p_first_iter_arrow = booster.predict(
          data, start_iteration=0, num_iteration=1, raw_score=True
      )
      p_first_iter_pandas = booster.predict(
          data.to_pandas(),
          start_iteration=0,
          num_iteration=1,
          raw_score=True,
      )
      np_assert_array_equal(
          p_first_iter_arrow, p_first_iter_pandas, strict=True
      )
  
imports: import filecmp
  from typing import Any, Dict, Optional
  import numpy
  import pyarrow
  import pytest
  import lightgbm
  from .utils import np_assert_array_equal
label_desc: Use image node_id 15 for calling a global function with example usage: assert_equal_predict_arrow_pandas(booster, data) without return types