<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _calculateEncodingKey(comparator):
 """Gets the first key of all available encodings where the corresponding value matches the comparator. Args: comparator (string):
 A view name for an encoding. Returns: str: A key for a specific encoding used by python. """

    encodingName = None
    for k, v in list(_encodings.items()):
        if v == comparator:
            encodingName = k
            break
    return encodingName