def METHOD_NAME(self, **kwargs) -> Dict[str, Any]:
    """Generate dummy inputs for model exportation to onnx or other formats by tracing.
    Args:
        shape: A tuple of input shape which should have at most two dimensions.
            shape = (1, ) batch_size=1, sequence_length will be taken from the preprocessor.
            shape = (8, 128) batch_size=1, sequence_length=128, which will cover the config of the preprocessor.
        pair(bool, `optional`): Whether to generate sentence pairs or single sentences.
    Returns:
        Dummy inputs.
    """
    assert hasattr(
        self.model, 'model_dir'
    ), 'model_dir attribute is required to build the preprocessor'
    preprocessor = Preprocessor.from_pretrained(
        self.model.model_dir, return_text=False)
    return preprocessor('2023')