code: def _write_median_norm(self, norms:[])->None:
          "Writes the median norm of the gradients to Tensorboard."
          median_norm = statistics.median(norms)
          self._add_gradient_scalar('median_norm', scalar_value=median_normf _write_median_norm(self, norms:[])->None:
          "Writes the median norm of the gradients to Tensorboard."
          median_norm = statistics.median(norms)
          self._add_gradient_scalar('median_norm', scalar_value=median_norm)
docs: Writes the median norm of the gradients to Tensorboard.