class_docstr: Test the methods and attributes of the Resource class
docstr: Test that the Resource class is instantiated as expected.
docstr_tok: ["Test","that","the","Resource","class","is","instantiated","as","expected","."]
code: def test_init(self, r, attribute_tup):
      """Test that the Resource class is instantiated as expected."""
      (
          num_wires,
          num_gates,
          gate_types,
          gate_sizes,
          depth,
          shots,
      ) = attribute_tup
  
      assert r.num_wires == num_wires
      assert r.num_gates == num_gates
      assert r.depth == depth
      assert r.shots == shots
      assert r.gate_types == gate_types
      assert r.gate_sizes == gate_sizes
  
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 1 for calling the TestResources obj's underlying member method code with example usage: obj.test_init(r, attribute_tup) without return types