code: def _filter_msg(self, msg, ids):
          
          filtered_msg = {}
          for k, v in msg.items():
              if isinstance(v, dict) and 'id' in v:
                  if v['id'] in ids:
                      filtered_msg[k] = v['value']
              else:
                  filtered_msg[k] = v
          return filtered_msg
docs: Filter event values that do not originate from the plotting
          handles associated with a particular stream using their
          ids to match them.