code: def simpleprod(lst):
      # Product of list of scalar tensors, as numpy would do it.
      if len(lst) == 0:
          return torch.tensor(1.0)
      else:
          return torch.prod(torch.cat([elem[None] for elem in lst]))
  
imports: import pytest
  import torch
  from pyro.contrib.mue.statearrangers import Profile, mg2k
label_desc: Use image node_id 1 for calling a global function with example usage: simpleprod(lst) and returns: torch, torch