code: def GetBlobsByTypePrefix(meta_net_def, blob_type_prefix):
      blob_map = {}
      for b in meta_net_def.blobs:
          if b.key.startswith(blob_type_prefix):
              for blob in b.value:
                  if blob not in blob_map:
                      blob_map[blob] = len(blob_map)
      return sorted(blob_map, key=lambda blob: blob_map[blob])
  
imports: from caffe2.python import core, scope
label_desc: Use image node_id 9 for calling a global function with example usage: GetBlobsByTypePrefix(meta_net_def, blob_type_prefix) and returns: sorted