code: def type_to_pack_format(typestring):
      fmt = None
      if typestring == "bool":
          fmt = "B"
      elif typestring == "double" or typestring == "float":
          fmt = "f"
      elif typestring == "int64":
          fmt = "i"
      elif typestring == "repeated int64" or typestring == "Shape":
          fmt = "iI"
      elif typestring == "string":
          fmt = "i"
      elif typestring == "Communicator":
          fmt = "C"
      return fmt
  
imports: import pickle
  import zlib
  from collections import OrderedDict
  from os.path import abspath, join, dirname, expanduser
  import glob
  import os
  import yaml
  import certifi
  import ssl
  from nnabla.utils import nnabla_pb2
  from nnabla.logger import logger
label_desc: Use image node_id 9 for calling a global function with example usage: type_to_pack_format(typestring) and returns: fmt