code: def handle_report_metric_data(self, data):
          
          if data['type'] == 'FINAL':
              self._handle_final_metric_data(data)
          elif data['type'] == 'PERIODICAL':
              if self.assessor is not None:
                  self._handle_intermediate_metric_data(data)
              else:
                  pass
          else:
              raise ValueError('Data type not supported: {}'.format(data['type']))
docs: data: a dict received from nni_manager, which contains:
                - 'parameter_id': id of the trial
                - 'value': metric value reported by nni.report_final_result()
                - 'type': report type, support {'FINAL', 'PERIODICAL'}