docstr: Test that wires_to_json raises an ``UnserializableWiresError`` if any
  of the wires are integer-like, but have a different hash if converted
  to int.
docstr_tok: ["Test","that","wires_to_json","raises","an","``","UnserializableWiresError","``","if","any","of","the","wires","are","integer-like",",","but","have","a","different","hash","if","converted","to","int","."]
code: def test_bad_integral_unserializable(self):
      """Test that wires_to_json raises an ``UnserializableWiresError`` if any
      of the wires are integer-like, but have a different hash if converted
      to int."""
  
      class BadInt(int):
          def __hash__(self) -> int:
              return 0
  
          def __int__(self) -> int:
              return 1
  
      with pytest.raises(UnserializableWireError):
          wires_to_json(Wires([BadInt()]))
  
file_path: pennylane/tests/data/attributes/operator/test__wires.py
imports: import json
  import numpy
  import pytest
  import pennylane
  from pennylane.data.attributes.operator._wires import UnserializableWireError, wires_to_json
  from pennylane.wires import Wires
label_desc: Use image node_id 4 for calling the TestWiresToJson obj's underlying member method code with example usage: obj.test_bad_integral_unserializable() and returns: int, int