code: def test_split_pauli_sentence(ps_size, max_size):
      """Test that _split_pauli_sentence splits the PauliSentence objects into correct chunks."""
  
      sentence = qml.pauli.PauliSentence(
          {
              qml.pauli.PauliWord({i: "X", i + 1: "Y", i + 2: "Z"}): i
              for i in range(ps_size)
          }
      )
  
      split_sentence = {}
      for ps in _split_pauli_sentence(sentence, max_size=max_size):
          assert len(ps) <= max_size
          split_sentence = {**split_sentence, **ps}
  
      assert sentence == qml.pauli.PauliSentence(split_sentence)
  
imports: import functools
  import pytest
  import scipy
  import pennylane
  from pennylane import numpy
  from pennylane.pauli import pauli_sentence
  from pennylane.qchem.tapering import _kernel, _reduced_row_echelon, clifford, optimal_sector, taper_hf, taper_operation, _split_pauli_sentence, _taper_pauli_sentence
  from pennylane.operation import enable_new_opmath, disable_new_opmath
label_desc: Use image node_id 18 for calling a global function with example usage: test_split_pauli_sentence(ps_size, max_size) without return types