code: def test_resource_eq(self):
      r = Resources(cpus=0.1, ram=2048)
      assert r not in [{}, [], None]
      assert r == r
  
      r2 = Resources(cpus=0.1, ram=2048)
      assert r == r2
      assert r2 == r
  
      r3 = Resources(cpus=0.2, ram=2048)
      assert r != r3
  
imports: from __future__ import annotations
  from airflow.utils.operator_resources import Resources
label_desc: Use image node_id 1 for calling the TestResources obj's underlying member method code with example usage: obj.test_resource_eq() without return types