code: def _measure(data):
      expect = 0
      t = type(data)
      if t is tuple or t is list or t is dict:
          for v in data:
              if isinstance(v, numpy.ndarray):
                  expect += v.nbytes
      return expect
  
imports: from __future__ import division
  import datetime
  import multiprocessing
  from multiprocessing import sharedctypes
  import signal
  import sys
  import threading
  import warnings
  import numpy
  import six
  from chainer.dataset import iterator
  from chainer.iterators import _statemachine
  from chainer.iterators.order_samplers import ShuffleOrderSampler
label_desc: Use image node_id 5 for calling a global function with example usage: _measure(data) and returns: expect