class_docstr: Tests additional methods and attributes
docstr: Test that the number of blocks attribute raises an error when offset is out of bounds.
docstr_tok: ["Test","that","the","number","of","blocks","attribute","raises","an","error","when","offset","is","out","of","bounds","."]
code: def test_get_n_blocks_error_with_offset(
      self, wires, offset, n_block_wires
  ):
      """Test that the number of blocks attribute raises an error when offset is out of bounds."""
  
      with pytest.raises(
          ValueError,
          match=r"Provided offset is outside the expected range; "
          f"the expected range for n_block_wires = {n_block_wires}",
      ):
          qml.MPS.get_n_blocks(wires, n_block_wires, offset)
  
imports: import pytest
  import numpy
  import pennylane
  from pennylane.templates.tensornetworks.mps import compute_indices_MPS, MPS
label_desc: Use image node_id 5 for calling the TestAttributes obj's underlying member method code with example usage: obj.test_get_n_blocks_error_with_offset(wires, offset, n_block_wires) without return types