class_docstr: Test that checks if the card decorator stores the information as intended for a built-in card
  - sets the pathspec in the task
  - Checker Asserts that taskpathspec in the card and the one set in the task match.
code: def check_results(self, flow, checker):
      run = checker.get_run()
      if run is None:
          # This means CliCheck is in context.
          for step in flow:
              cli_check_dict = checker.artifact_dict(step.name, "task")
              for task_pathspec in cli_check_dict:
                  taskpathspec_artifact = cli_check_dict[task_pathspec][
                      "task"
                  ]
                  task_id = task_pathspec.split("/")[-1]
                  checker.assert_card(
                      step.name,
                      task_id,
                      "taskspec_card",
                      "%s" % taskpathspec_artifact,
                  )
      else:
          # This means MetadataCheck is in context.
          for step in flow:
              meta_check_dict = checker.artifact_dict(step.name, "task")
              for task_id in meta_check_dict:
                  taskpathspec = meta_check_dict[task_id]["task"]
                  checker.assert_card(
                      step.name,
                      task_id,
                      "taskspec_card",
                      "%s" % taskpathspec,
                  )
  
file_path: metaflow/test/core/tests/card_simple.py
imports: from metaflow_test import MetaflowTest, ExpectationFailed, steps, tag
label_desc: Use image node_id 5 for calling the CardDecoratorBasicTest obj's underlying member method code with example usage: obj.check_results(flow, checker) without return types