code: def random_feed_dict(rng, placeholders):
      """
      Returns random data to be used with `feed_dict`.
      :param rng: A numpy.random.RandomState instance
      :param placeholders: List of tensorflow placeholders
      :return: A dict mapping placeholders to random numpy values
      """
  
      output = {}
  
      for placeholder in placeholders:
          if placeholder.dtype != "float32":
              raise NotImplementedError()
          value = rng.randn(*placeholder.shape).astype("float32")
          output[placeholder] = value
  
      return output
  
file_path: cleverhans/cleverhans/devtools/mocks.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import copy
  import numpy
  from cleverhans.dataset import Dataset, np_utils
label_desc: Use image node_id 1 for calling a global function with example usage: random_feed_dict(rng, placeholders) and returns: output