code: def get_num_workers() -> int:
      try:
          return len(os.sched_getaffinity(0)) // 2
      except Exception:
          return os.cpu_count() // 2
  
file_path: pytorch_geometric/examples/ogbn_papers_100m.py
imports: import os
  import time
  from typing import Optional
  import torch
  import torch.nn.functional
  from ogb.nodeproppred import PygNodePropPredDataset
  from torch_geometric.loader import NeighborLoader
  from torch_geometric.nn import GCNConv
label_desc: Use image node_id 1 for calling a global function with example usage: get_num_workers() and returns: unknown, unknown