code: def test_locked_manager_replace_table(self):
      post_callback = partial(
          self.validate_post,
          expected={
              "id": 1,
              "error": "`table_method.replace` failed - access denied",
          },
      )
      message = {
          "id": 1,
          "name": "table1",
          "cmd": "table_method",
          "method": "replace",
          "args": [data],
      }
      manager = PerspectiveManager(lock=True)
      manager._process(message, post_callback)
  
imports: import json
  import time
  import numpy
  import pyarrow
  from datetime import datetime
  from functools import partial
  from pytest import raises
  from perspective import Table, PerspectiveError, PerspectiveManager
label_desc: Use image node_id 23 for calling the TestPerspectiveManager obj's underlying member method code with example usage: obj.test_locked_manager_replace_table() without return types