def skip_testing_during_training(task):
  """Filter to determine if we should be running test-time evaluation.

  In cloth and bag tasks, we need `--disp` (at least with PyBullet 2.8.4),
  and that causes problems if instantiating multiple `Environment`s, as in
  standard testing. Furthermore, all 'Deformable Ravens' tasks have finer
  grained evaluation criteria, and it is easier to have a dedicated script,
  `load.py`, which can process more information. We filter for all these,
  while being careful to avoid filtering 'cable'.

  Args:
    task: String representing the task name from the argument parser.

  Returns:
    bool indicating test-time evaluation.
  """
  return ('cable-' in task) or ('cloth' in task) or ('bag' in task)