code: def convert_attr(module_attr):
      if module_attr.type == 1:
          return module_attr.i
      elif module_attr.type == 2:
          return module_attr.f
      elif module_attr.type == 3:
          return module_attr.s
      elif module_attr.type == 4:
          return module_attr.b
  
      _dict = EasyDict()
      for key, val in module_attr.map.data.items():
          _dict[key] = convert_attr(val)
      return _dict
  
imports: from easydict import EasyDict
  from paddlehub.compat.module import module_desc_pb2
label_desc: Use image node_id 3 for calling a global function with example usage: convert_attr(module_attr) and returns: _dict, module_attr, module_attr, module_attr, module_attr