human
Complete the below
def fake_pgettext(translations):

    ''''Create a fake implementation of pgettext, for testing.'
    '''
 ... Give me a the Python code you requested?
assistant
#Here is the Python code you requested.
    def _pgettext(context, text):
        return translations.get((context, text), text)
    return _pgettext