tf_agents.utils.test_utils.contains

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(...)

list1 List which may or may not contain list2.
list2 List to check if included in list 1.

A boolean indicating whether list2 is contained in list1.