code: def __init__(
      self, dataset, batch_size, pos_ratio, q, chronological=False
  ):
      self._dataset = dataset
      self._batch_size = batch_size
      self._num_pos = int(batch_size * pos_ratio)
  
      self._user_list = self._dataset.get_unique_user_list()
      self._q = q
      self._state = 0
      self._chronological = chronological
  
      if not chronological:
          self._dataset.shuffle()
      super(_PointwiseSampler, self).__init__()
  
file_path: openrec/openrec/tf1/legacy/utils/samplers/pointwise_sampler.py
imports: import numpy
  import random
  from multiprocessing import Process
  from openrec.tf1.legacy.utils.samplers import Sampler
label_desc: Use image node_id 1 to create a new _PointwiseSampler object from inherited base classes: Process with example: obj = _PointwiseSampler(dataset, batch_size, pos_ratio, q, chronological)