code: def assert_no_comm_nodes(
      snodes: List["scheduler.BaseSchedulerNode"],
  ) -> None:
      assert not any(
          isinstance(snode.node, ir.CollectiveKernel)
          for snode in snodes
      )
  
file_path: pytorch/torch/_inductor/comms.py
imports: from typing import List
  import torch
  from .None import config, ir, scheduler
  from .dependencies import WeakDep
  from .utils import tuple_sorted
label_desc: Use image node_id 6 for calling a global function with example usage: assert_no_comm_nodes(snodes) without return types