class_docstr: Tests for ``group_observables`` function using QWC, commuting, and anticommuting partitioning.
class_docstr_tok: ["Tests","for","``","group_observables","``","function","using","QWC",",","commuting",",","and","anticommuting","partitioning","."]
docstr: Tests that the ``binary_repr`` method sets a custom
  wire map correctly.
docstr_tok: ["Tests","that","the","``","binary_repr","``","method","sets","a","custom","wire","map","correctly","."]
code: def test_binary_repr_custom_wire_map(self):
      """Tests that the ``binary_repr`` method sets a custom
      wire map correctly."""
      # pylint: disable=protected-access
  
      observables = [
          Identity("alice"),
          Identity("bob"),
          Identity("charlie"),
      ]
      grouping_instance = PauliGroupingStrategy(
          observables, "anticommuting"
      )
  
      n_qubits = 3
      wire_map = {"alice": 1, "bob": 0, "charlie": 2}
      _ = grouping_instance.binary_repr(n_qubits, wire_map)
  
      assert grouping_instance._wire_map == wire_map
  
imports: import pytest
  import numpy
  import pennylane
  from pennylane import Identity, PauliX, PauliY, PauliZ
  from pennylane.pauli import are_identical_pauli_words
  from pennylane.pauli.grouping.group_observables import PauliGroupingStrategy, group_observables
  from pennylane import numpy
label_desc: Use image node_id 5 for calling the TestGroupObservables obj's underlying member method code with example usage: obj.test_binary_repr_custom_wire_map() without return types