code: def _target_modality_is_real(self):
      
      vocab_size = self._problem_hparams.vocab_size["targets"]
      if vocab_size is not None and hasattr(self._hparams, "vocab_divisor"):
        vocab_size += (-vocab_size) % self._hparams.vocab_divisor
      modality = self._problem_hparams.modality["targets"]
      modality_name = self._hparams.name.get(
          "targets",
          modalities.get_name(modality))(self._hparams, vocab_size)
      return modality_name.startswith("real")
docs: Whether the target modality is real-valued.