code: def _do_batched_op_msg(
          namespace, operation, command, docs, check_keys, opts, ctx):
      
      command['$db'] = namespace.split('.', 1)[0]
      if 'writeConcern' in command:
          ack = bool(command['writeConcern'].get('w', 1))
      else:
          ack = True
      if ctx.sock_info.compression_context:
          return _batched_op_msg_compressed(
              operation, command, docs, check_keys, ack, opts, ctx)
      return _batched_op_msg(
          operation, command, docs, check_keys, ack, opts, ctx)
docs: Create the next batched insert, update, or delete operation
      using OP_MSG.