code: def test_custom_list(self):
      def fn(x):
          return x[0] + x[1]
  
      counter = CompileCounter()
  
      class Foo(list):
          def __iter__(self):
              raise Exception()
  
          def __len__(self):
              raise Exception()
  
      x = Foo()
      x.append(torch.randn(4))
      x.append(torch.randn(4))
      with torch._dynamo.optimize_assert(counter):
          fn(x)
  
      assert counter.op_count == 0
  
imports: from unittest.mock import patch
  import torch
  import torch._dynamo
  import torch._dynamo.test_case
  from torch._dynamo.testing import CompileCounter
label_desc: Use image node_id 7 for calling the SkipNonTensorTests obj's underlying member method code with example usage: obj.test_custom_list() and returns: unknown