<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def enqueue_command(self, command_name, args, options):
 """Enqueue a new command into this pipeline."""

        assert_open(self)
        promise = Promise()
        self.commands.append((command_name, args, options, promise))
        return promise