    def __call__(self, dev_id: int) -> None:
        """Execute the bash command with a new subprocess.

        Parameters
        ----------
        dev_id : int
            Target execution device id.
        """
        self._assigned_dev = dev_id
        use_shell = False
        if "shell" in self._kwargs:
            use_shell = self._kwargs["shell"]
        env = os.environ.copy()
        if "dev_flag" in self._kwargs:
            env[self._kwargs["dev_flag"]] = str(dev_id)
        self._proc = subprocess.Popen(
            self._cmd,
            stdout=subprocess.PIPE,
            stderr=subprocess.PIPE,
            env=env,
            shell=use_shell,
        )
        self._timestamp = time.time()
Execute the bash command with a new subprocess.

Parameters
----------
dev_id : int
Target execution device id.
python/aitemplate/backend/task_runner.py