code: def compute_statistics(assignments):
      blob_bytes = {
          blob: blob_nbytes(blob)
          for assignment in assignments
          for (blob, _) in assignment
      }
      baseline_nbytes = sum(blob_bytes.values())
      optimized_nbytes = sum(
          max(blob_bytes[blob] for (blob, _) in assignment)
          for assignment in assignments
      )
      return Statistics(
          baseline_nbytes=baseline_nbytes,
          optimized_nbytes=optimized_nbytes,
      )
  
imports: import networkx
  import collections
  import time
  import copy
  from caffe2.python import workspace, core
  from caffe2.proto import caffe2_pb2
  import enum
  import logging
  import caffe2.python._import_c_extension
label_desc: Use image node_id 34 for calling a global function with example usage: compute_statistics(assignments) and returns: Statistics