code: def pytest_sessionfinish(session, exitstatus):
      """
      Ensure that pytest doesn't report failure when no tests are collected.
  
      This can sometimes happen due to the way we distribute tests across multiple circle
      nodes.
      """
      if exitstatus == pytest.ExitCode.NO_TESTS_COLLECTED:
          session.exitstatus = pytest.ExitCode.OK
  
file_path: ParlAI/conftest.py
imports: import os
  import pathlib
  import random
  import collections
  import pytest
  import subprocess
label_desc: Use image node_id 4 for calling a global function with example usage: pytest_sessionfinish(session, exitstatus) without return types