class_docstr: Test function that computes MERA indices
class_docstr_tok: ["Test","function","that","computes","MERA","indices"]
docstr: Verifies that a warning is raised if n_wires doesn't correspond to n_block_wires.
docstr_tok: ["Verifies","that","a","warning","is","raised","if","n_wires","does","n't","correspond","to","n_block_wires","."]
code: def test_warning_many_wires(self, wires, n_block_wires):
      """Verifies that a warning is raised if n_wires doesn't correspond to n_block_wires."""
      n_wires = len(wires)
      with pytest.warns(
          Warning,
          match=f"The number of wires should be n_block_wires times 2\\^n; got n_wires/n_block_wires = {n_wires/n_block_wires}",
      ):
          compute_indices(range(n_wires), n_block_wires)
  
imports: import pytest
  import numpy
  import pennylane
  from pennylane.templates.tensornetworks.mera import MERA, compute_indices
label_desc: Use image node_id 4 for calling the TestIndicesMERA obj's underlying member method code with example usage: obj.test_warning_many_wires(wires, n_block_wires) without return types