code: def check_needs_list(contents, workflow):
      marker_line = find_marker_line(contents, ALL_JOBS_PASSED_MARKER)
  
      jobs = find_key(workflow, ["jobs"], marker_line)
      found = find_key(
          jobs, [ALL_JOBS_PASSED_JOB, "needs"], marker_line
      )
  
      # this should depend on all of the other jobs...
      expected = set(jobs.keys())
      # ... except itself
      expected.remove(ALL_JOBS_PASSED_JOB)
  
      unique_and_equal(
          found,
          expected,
          name="job(s)",
          step=ALL_JOBS_PASSED_JOB,
          marker_line=marker_line,
      )
  
file_path: stellargraph/scripts/ci/validate_ci_workflow.py
imports: import yaml
  import sys
  import glob
  import os
  from collections import Counter
label_desc: Use image node_id 6 for calling a global function with example usage: check_needs_list(contents, workflow) without return types