code: def _node_quals(self, name, node):
      quals = {"all"}
      quals.update(node.get("quals", []))
      if name in ("start", "end"):
          quals.add(name)
      if "join" in node:
          quals.add("join")
      if "parallel_step" in node:
          quals.add("parallel-step")
      if "linear" in node:
          quals.add("linear")
      for qual in node.get("quals", []):
          quals.add(qual)
      return quals
  
file_path: metaflow/test/core/metaflow_test/formatter.py
imports: import sys
  import inspect
label_desc: Use image node_id 4 for calling the FlowFormatter obj's underlying member method code with example usage: obj._node_quals(name, node) and returns: quals