code: def test_io():
      """Verify that I/O levels during optimization are close enough to nominal levels"""
  
      with OrionState():
          net_in, net_out, n_trials = compute_stats(
              monitoring_method="ptera",
              executor="joblib",
              max_trials=(198, 200),
              sleep_time=15.0,
          )
      net_in = numpy.array(net_in)
      net_out = numpy.array(net_out)
  
      NOMINAL_IN_MEAN = 16.45  # KB/s
      NOMINAL_IN_STD = 77.57  # KB/s
  
      NOMINAL_OUT_MEAN = 57.56  # KB/s
      NOMINAL_OUT_STD = 276.41  # KB/s
  
      assert (
          net_in.mean()
          < NOMINAL_IN_MEAN
          + NOMINAL_IN_STD / numpy.sqrt(net_in.shape[0])
      )
      assert (
          net_out.mean()
          < NOMINAL_OUT_MEAN
          + NOMINAL_OUT_STD / numpy.sqrt(net_out.shape[0])
      )
  
imports: import argparse
  import contextlib
  import multiprocessing
  import subprocess
  import sys
  import time
  from collections import defaultdict, namedtuple
  import bson
  import numpy
  from ptera import probing
  from orion.client import build_experiment
  from orion.client.runner import Runner
  from orion.core.io.database.pickleddb import PickledDB
  from orion.testing import OrionState
label_desc: Use image node_id 18 for calling a global function with example usage: test_io() without return types