code: def measure_size_read(element):
      """Measure net_in/net_out of probing event on DB.read"""
      return {
          "net_in": measure_size_count(element)["net_in"],
          "net_out": sum(measure_size(e) for e in element["#value"]),
      }
  
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 8 for calling a global function with example usage: measure_size_read(element) and returns: dict