code: def contains(list1, list2):
      """Check if all items in list2 are in list1.
  
      This function handles the case when the parameters are lists of np.arrays
      (which wouldn't be handled by something like .issubset(...)
  
      Args:
        list1: List which may or may not contain list2.
        list2: List to check if included in list 1.
  
      Returns:
        A boolean indicating whether list2 is contained in list1.
      """
      contains_result = True
      for item2 in list2:
          contains_result = contains_result and np.any(
              [np.all(item2 == item1) for item1 in list1]
          )
          if not contains_result:
              break
      return contains_result
  
file_path: agents/tf_agents/utils/test_utils.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  from absl import flags
  import gin
  import numpy
  import tensorflow
label_desc: Use image node_id 1 for calling a global function with example usage: contains(list1, list2) and returns: contains_result