<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def __get_value_from_data(self, key, data):
 """Find value from json data :@pram key :@type: string :@pram data :@type data: dict :@return object :@throws KeyError """

        if key.isdigit():
            return data[int(key)]

        if key not in data:
            raise KeyError("Key not exists")

        return data.get(key)