openfl.utilities.checks.check_is_in

Contents

openfl.utilities.checks.check_is_in#

openfl.utilities.checks.check_is_in(element, _list, logger)[source]#

Assert element is in _list collection.

Parameters:
  • element (Any) – The element to check.

  • _list (Iterable) – The collection to check in.

  • logger (Logger) – The logger to use for reporting the error.

Raises:

ValueError – If the element is not in the collection.