code: def extract_tensors(maybe_tensor, tensor_list):
      if torch.is_tensor(maybe_tensor):
          tensor_list.append(maybe_tensor)
      else:
          try:
              for item in maybe_tensor:
                  extract_tensors(item, tensor_list)
          except TypeError:
              return
  
imports: from collections import OrderedDict
  import copy
  import importlib
  from itertools import chain
  import torch
  import torch.distributed
  from torch.nn.modules import Module
  from torch.autograd import Variable
  from ..multi_tensor_apply import multi_tensor_applier
label_desc: Use image node_id 8 for calling a global function with example usage: extract_tensors(maybe_tensor, tensor_list) without return types