docstr: Returns `True` if the manager instance is locked and the command
  is in `_PerspectiveManagerInternal.LOCKED_COMMANDS`, and `False` otherwise.
docstr_tok: ["Returns","`","True","`","if","the","manager","instance","is","locked","and","the","command","is","in","`","_PerspectiveManagerInternal.LOCKED_COMMANDS","`",",","and","`","False","`","otherwise","."]
code: def _is_locked_command(self, msg):
      """Returns `True` if the manager instance is locked and the command
      is in `_PerspectiveManagerInternal.LOCKED_COMMANDS`, and `False` otherwise.
      """
      if not self._lock:
          return False
  
      cmd = msg["cmd"]
      method = msg.get("method", None)
  
      if cmd == "table_method" and method == "delete":
          # table.delete is blocked, but view.delete is not
          return True
  
      return (
          cmd == "table"
          or method in _PerspectiveManagerInternal.LOCKED_COMMANDS
      )
  
imports: import datetime
  import json
  import logging
  from collections import deque
  from functools import partial
  from ..core.exception import PerspectiveError
  from ..table import PerspectiveCppError, Table
  from ..table._callback_cache import _PerspectiveCallBackCache
  from ..table._date_validator import _PerspectiveDateValidator
label_desc: Use image node_id 13 for calling the _PerspectiveManagerInternal obj's underlying member method code with example usage: obj._is_locked_command(msg) and returns: unknown, False, True