class_docstr: Test function that computes MPS indices
docstr: Verifies that an exception is raised when abs(offset) is more than n_block_wires / 2.
docstr_tok: ["Verifies","that","an","exception","is","raised","when","abs","(","offset",")","is","more","than","n_block_wires","\/","2","."]
code: def test_exception_offset(self, n_wires, n_block_wires, offset):
      """Verifies that an exception is raised when abs(offset) is more than n_block_wires / 2."""
  
      with pytest.raises(
          ValueError,
          match="Provided offset is outside the expected range; "
          f"the expected range for n_block_wires = {n_block_wires}",
      ):
          compute_indices_MPS(range(n_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 3 for calling the TestIndicesMPS obj's underlying member method code with example usage: obj.test_exception_offset(n_wires, n_block_wires, offset) without return types