code: def tensor_product(observables):
      return functools.reduce(np.kron, observables)
  
imports: import functools
  import pytest
  import numpy
  import pennylane
  from pennylane import expval, var, sample
label_desc: Use image node_id 2 for calling a global function with example usage: tensor_product(observables) and returns: functools