code: def list_operations(self):
      op_list = []
      for x in self:
          if isinstance(x, Operation):
              op_list.append(x)
          else:
              assert isinstance(x, Sequence)
              op_list += x.list_operations()
      return op_list
  
imports: import math
  from abc import ABC
  from typing import List
  from torch.utils._pytree import tree_map
label_desc: Use image node_id 3 for calling the Sequence obj's underlying member method code with example usage: obj.list_operations() and returns: op_list