    def push(self, idx: Union[int, str], cmd: str, return_ops: List[str] = None):
        """Push a new profiling task into runner's queue

        Parameters
        ----------
        idx : Union[int, str]
            Profiling task id (usually is algorithm id or name)
        cmd : str
            Bash command to execute the profiling task
        return_ops : List[str]
            Names of the ops to return the profiling results for. If specified,
            instead of a single (best) ProfileResult instance, a list with the
            ProfileResults for each op in the return_ops is returned from `pull`.
        """
        self._queue.append(
            Task(
                idx,
                cmd,
                self._tag,
                dev_flag=self._dev_flag,
                return_ops=return_ops,
            )
        )
Push a new profiling task into runner's queue

Parameters
----------
idx : Union[int, str]
Profiling task id (usually is algorithm id or name)
cmd : str
Bash command to execute the profiling task
return_ops : List[str]
Names of the ops to return the profiling results for. If specified,
instead of a single (best) ProfileResult instance, a list with the
ProfileResults for each op in the return_ops is returned from `pull`.
python/aitemplate/backend/profiler_runner.py