def METHOD_NAME(pet):  # noqa: E501
    """Update an existing pet
     # noqa: E501
    :param pet: Pet object that needs to be added to the store
    :type pet: dict | bytes
    :rtype: Union[None, Tuple[None, int], Tuple[None, int, Dict[str, str]]
    """
    if connexion.request.is_json:
        pet = Pet.from_dict(connexion.request.get_json())  # noqa: E501
    return 'do some magic!'