code: def _count_by_quotient(indices, divisor):
      counter = defaultdict(int)
      for i in indices:
          counter[i // divisor] += 1
  
      return counter
  
imports: import unittest
  from collections import defaultdict
  from dataclasses import dataclass
  from itertools import product
  import numpy
  import torch
  from pytorch3d.implicitron.dataset.data_loader_map_provider import DoublePoolBatchSampler
  from pytorch3d.implicitron.dataset.dataset_base import DatasetBase
  from pytorch3d.implicitron.dataset.frame_data import FrameData
  from pytorch3d.implicitron.dataset.scene_batch_sampler import SceneBatchSampler
label_desc: Use image node_id 1 for calling a global function with example usage: _count_by_quotient(indices, divisor) and returns: counter