class_docstr: This is where tuners and assessors are not defined yet.
  Inherits this class to make your own advisor.
  
  .. note::
  
      The class inheriting MsgDispatcherBase should be instantiated
      after nnimanager (rest server) is started, so that the object
      is ready to use right after its instantiation.
class_docstr_tok: ["This","is","where","tuners","and","assessors","are","not","defined","yet",".","Inherits","this","class","to","make","your","own","advisor",".","..","note",":",":","The","class","inheriting","MsgDispatcherBase","should","be","instantiated","after","nnimanager","(","rest","server",")","is","started",",","so","that","the","object","is","ready","to","use","right","after","its","instantiation","."]
code: def process_command(self, command, data):
      _logger.debug(
          "process_command: command: [%s], data: [%s]", command, data
      )
  
      command_handlers = {
          # Tuner commands:
          CommandType.Initialize: self.handle_initialize,
          CommandType.RequestTrialJobs: self.handle_request_trial_jobs,
          CommandType.UpdateSearchSpace: self.handle_update_search_space,
          CommandType.ImportData: self.handle_import_data,
          CommandType.AddCustomizedTrialJob: self.handle_add_customized_trial,
          # Tuner/Assessor commands:
          CommandType.ReportMetricData: self.handle_report_metric_data,
          CommandType.TrialEnd: self.handle_trial_end,
          CommandType.Ping: self.handle_ping,
      }
      if command not in command_handlers:
          raise AssertionError(
              "Unsupported command: {}".format(command)
          )
      command_handlers[command](data)
  
imports: import threading
  import logging
  from queue import Queue, Empty
  from .env_vars import dispatcher_env_vars
  from ..common import load
  from ..recoverable import Recoverable
  from .tuner_command_channel import CommandType, TunerCommandChannel
label_desc: Use image node_id 7 for calling the MsgDispatcherBase obj's underlying member method code with example usage: obj.process_command(command, data) without return types