code: def _err_msg_for_some_meas_not_qwc(measurements):
      """Error message for the case when some operators measured on the same wire are not qubit-wise commuting."""
      return (
          "Only observables that are qubit-wise commuting "
          "Pauli words can be returned on the same wire, "
          f"some of the following measurements do not commute:\n{measurements}"
      )
  
imports: import copy
  from threading import RLock
  import pennylane
  from pennylane.measurements import CountsMP, ProbabilityMP, SampleMP
  from pennylane.operation import DecompositionUndefinedError, Operator, StatePrepBase
  from pennylane.queuing import AnnotatedQueue, QueuingManager, process_queue
  from pennylane.pytrees import register_pytree
  from .qscript import QuantumScript
label_desc: Use image node_id 1 for calling a global function with example usage: _err_msg_for_some_meas_not_qwc(measurements) and returns: str, measurements