code: def build_toy_dataset(U, V, N, M, noise_std=0.1):
      R = np.dot(np.transpose(U), V) + np.random.normal(
          0, noise_std, size=(N, M)
      )
      return R
  
file_path: edward/examples/probabilistic_matrix_factorization.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import edward
  import matplotlib.pyplot
  import numpy
  import tensorflow
  from edward.models import Normal
label_desc: Use image node_id 1 for calling a global function with example usage: build_toy_dataset(U, V, N, M, noise_std) and returns: R