def query_cache_by_object(self, zenpy_object):
object_type = get_object_type(zenpy_object)<EOL>cache_key = self._cache_key_attribute(object_type)<EOL>return self.get(object_type, getattr(zenpy_object, cache_key))<EOL>
Convenience method for testing. Given an object, return the cached version