code: def get_cmsg(emsg):
      
      if not isinstance(emsg, EMsg):
          emsg = EMsg(emsg)
  
      if emsg in cmsg_lookup_predefined:
          return cmsg_lookup_predefined[emsg]
      else:
          enum_name = emsg.name.lower()
          if enum_name.startswith("econ"):  # special case for 'EconTrading_'
              enum_name = enum_name[4:]
          cmsg_name = "cmsg" + enum_name
  
      return cmsg_lookup.get(cmsg_name, None)
docs: Get protobuf for a given EMsg
  
      :param emsg: EMsg
      :type emsg: :class:`steam.enums.emsg.EMsg`, :class:`int`
      :return: protobuf message