code: def dispatch(self, method_frame):
          '''
          Dispatch a method.
          '''
          klass = self._class_map.get(method_frame.class_id)
          if klass:
              klass.dispatch(method_frame)
          else:
              raise Channel.InvalidClass(
                  "class %d is not supported on channel %d",
                  method_frame.class_id, self.channel_idf dispatch(self, method_frame):
          '''
          Dispatch a method.
          '''
          klass = self._class_map.get(method_frame.class_id)
          if klass:
              klass.dispatch(method_frame)
          else:
              raise Channel.InvalidClass(
                  "class %d is not supported on channel %d",
                  method_frame.class_id, self.channel_id)
docs: Dispatch a method.