def METHOD_NAME(self, input: Input) -> Dict[str, Any]:
    if isinstance(input, str):
        input_text = input
    else:
        raise TypeError(f'input should be a str,'
                        f'  but got {type(input)}')
    result = {'input_text': input_text}
    return result