code: def max_input_length(self) -> int:
          
          if self.source_with_eos:
              return self._max_input_length - C.SPACE_FOR_XOS
          else:
              return self._max_input_length
docs: Returns maximum input length for TranslatorInput objects passed to translate()