class_docstr: Resuming a flow with card decorators should reference a origin task's card when calling `get_cards` or `card get` cli commands.
class_docstr_tok: ["Resuming","a","flow","with","card","decorators","should","reference","a","origin","task","'s","card","when","calling","`","get_cards","`","or","`","card","get","`","cli","commands","."]
code: def check_results(self, flow, checker):
      run = checker.get_run()
      if run is not None:
          for step in run.steps():
              if step.id == "start":
                  task = step.task
                  checker.assert_card(
                      step.id,
                      task.id,
                      "taskspec_card",
                      "%s" % task.origin_pathspec,
                  )
      else:
          for step in flow:
              if step.name != "start":
                  continue
              cli_check_dict = checker.artifact_dict(
                  step.name, "origin_pathspec"
              )
              for task_pathspec in cli_check_dict:
                  task_id = task_pathspec.split("/")[-1]
                  checker.assert_card(
                      step.name,
                      task_id,
                      "taskspec_card",
                      "%s"
                      % cli_check_dict[task_pathspec][
                          "origin_pathspec"
                      ],
                  )
  
imports: from metaflow_test import MetaflowTest, ExpectationFailed, steps, tag
label_desc: Use image node_id 4 for calling the CardResumeTest obj's underlying member method code with example usage: obj.check_results(flow, checker) without return types