def METHOD_NAME(key: Any) -> str:
    if not isinstance(key, str):
        raise TypeError(f'Property names of JSON objects must be strings,'
                        f' but got {key.__class__.__name__}')
    return key