code: def convert_signatures(signmaps):
      _dict = EasyDict()
      for sign, var in signmaps.items():
          _dict[sign] = EasyDict(inputs=[], outputs=[])
          for fetch_var in var.fetch_desc:
              _dict[sign].outputs.append(
                  EasyDict(
                      name=fetch_var.var_name, alias=fetch_var.alias
                  )
              )
  
          for feed_var in var.feed_desc:
              _dict[sign].inputs.append(
                  EasyDict(name=feed_var.var_name, alias=feed_var.alias)
              )
  
      return _dict
  
imports: from easydict import EasyDict
  from paddlehub.compat.module import module_desc_pb2
label_desc: Use image node_id 2 for calling a global function with example usage: convert_signatures(signmaps) and returns: _dict