code: def get(self,
              hyp_lengths: Union[mx.nd.NDArray, int, float],
              reference_lengths: Optional[Union[mx.nd.NDArray, int, float]]) -> Union[mx.nd.NDArray, float]:
          
          if reference_lengths is None:
              return 0.0
          else:
              return self.hybrid_forward(None, hyp_lengths, reference_lengths)
docs: Calculate the length penalty for the given vector of lengths.
  
          :param hyp_lengths: Hypotheses lengths.
          :param reference_lengths: Reference lengths.
          :return: The length penalty. A scalar or a matrix (batch_size, 1) depending on the input.