class_docstr: Test that checks if the card decorator works as intended with the timeout decorator.
  # This test set an artifact in the steps and also set a timeout to the card argument.
  # It will assert the artifact to be None.
class_docstr_tok: ["Test","that","checks","if","the","card","decorator","works","as","intended","with","the","timeout","decorator",".","#","This","test","set","an","artifact","in","the","steps","and","also","set","a","timeout","to","the","card","argument",".","#","It","will","assert","the","artifact","to","be","None","."]
code: def check_results(self, flow, checker):
      run = checker.get_run()
      for step in flow:
          if step.name != "start":
              continue
          if run is None:
              # This means CliCheck is in context.
              cli_check_dict = checker.artifact_dict(step.name, "task")
              for task_pathspec in cli_check_dict:
                  task_id = task_pathspec.split("/")[-1]
                  checker.assert_card(
                      step.name,
                      task_id,
                      "timeout_card",
                      None,
                  )
          else:
              # This means MetadataCheck is in context.
              meta_check_dict = checker.artifact_dict(step.name, "task")
              for task_id in meta_check_dict:
                  checker.assert_card(
                      step.name, task_id, "timeout_card", None
                  )
  
imports: from metaflow_test import MetaflowTest, ExpectationFailed, steps, tag
label_desc: Use image node_id 3 for calling the CardTimeoutTest obj's underlying member method code with example usage: obj.check_results(flow, checker) without return types