code: def test_exception(self):
      memcached = MockMemcached()
      memcached.get = memcached.get_side_effect
      memcached.set = memcached.set_side_effect
      m = MemcachedBytecodeCache(memcached)
      b = Bucket(None, "key", "")
      b.code = "code"
  
      m.dump_bytecode(b)
      m.load_bytecode(b)
  
      m.ignore_memcache_errors = False
  
      with pytest.raises(MockMemcached.Error):
          m.dump_bytecode(b)
  
      with pytest.raises(MockMemcached.Error):
          m.load_bytecode(b)
  
file_path: catboost/contrib/python/Jinja2/py3/tests/test_bytecode_cache.py
imports: import pytest
  from jinja2 import Environment
  from jinja2.bccache import Bucket
  from jinja2.bccache import FileSystemBytecodeCache
  from jinja2.bccache import MemcachedBytecodeCache
  from jinja2.exceptions import TemplateNotFound
label_desc: Use image node_id 2 for calling the TestMemcachedBytecodeCache obj's underlying member method code with example usage: obj.test_exception() without return types