code: def measure_size(element):
      """Measure size (KB) of an element encoded as BSON.
  
      List and tuples and converted elemented wize and the size is the sum of the elements sizes.
      """
      if not element:
          return 0
  
      if isinstance(element, (list, tuple)):
          return sum(measure_size(e) for e in element)
  
      # in KB
      return len(bson.BSON.encode(element)) / 1000.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 6 for calling a global function with example usage: measure_size(element) and returns: unknown, int, sum