code: def test_context_manager_raises_when_locked_not_acquired(self, r):
      r.set("foo", "bar")
      with pytest.raises(LockError):
          with self.get_lock(r, "foo", blocking_timeout=0.1):
              pass
  
imports: import time
  import pytest
  from redis.client import Redis
  from redis.exceptions import LockError, LockNotOwnedError
  from redis.lock import Lock
  from .conftest import _get_client
label_desc: Use image node_id 17 for calling the TestLock obj's underlying member method code with example usage: obj.test_context_manager_raises_when_locked_not_acquired(r) without return types