Beam search type
# What does this PR do?




This PR fixes issue #22856 , which has a type mismatch between the returned value, and the type hinting in the  BeamSeachScorer, process function. Previously the type hint was set to a Tuple which was inconsistent with the returned Dict value. I've changed them to be consistent and ran the following test cases.

1. Performed print statements of the process annotations.
- Before changes return  type was typing.Tuple[torch.Tensor]}
- After changes return type was typing.Dict[str, torch.Tensor]

2. Ran PyTest for the test_beam_search.py with all 6 test cases passing. 


# Motivation and Context

To ensure high quality code within the HuggingFace repo.

## Who can review?
@gante 



_The documentation is not available anymore as the PR was closed or merged._<|||||>Absolutely :)