class_docstr: Test the methods and attributes of the Resource class
docstr: Test that the ipython display prints the string representation of a Resources instance.
docstr_tok: ["Test","that","the","ipython","display","prints","the","string","representation","of","a","Resources","instance","."]
code: def test_ipython_display(self, r, rep, capsys):
      """Test that the ipython display prints the string representation of a Resources instance."""
      r._ipython_display_()  # pylint: disable=protected-access
      captured = capsys.readouterr()
      assert rep in captured.out
  
imports: from dataclasses import FrozenInstanceError
  from collections import defaultdict
  import pytest
  import pennylane
  from pennylane.operation import Operation
  from pennylane.tape import QuantumScript
  from pennylane.resource.resource import Resources, ResourcesOperation, _count_resources
  from pennylane.measurements import Shots
label_desc: Use image node_id 6 for calling the TestResources obj's underlying member method code with example usage: obj.test_ipython_display(r, rep, capsys) without return types