code: def _filter_by_count(elements, min_count):
      unique_elements, element_counts = np.unique(
          elements, return_counts=True
      )
  
      return unique_elements[element_counts >= min_count]
  
file_path: spotlight/spotlight/datasets/amazon.py
imports: import h5py
  import numpy
  from spotlight.datasets import _transport
  from spotlight.interactions import Interactions
label_desc: Use image node_id 2 for calling a global function with example usage: _filter_by_count(elements, min_count) and returns: unique_elements