class_docstr: Base class of all order samplers.
  
  Every order sampler subclass has to provide a method
  :meth:`__call__`.
  This method is called by an iterator before a new epoch,
  and it should return a new index order for the next epoch.
docstr: Sample the next order.
  
  Args:
      current_order (numpy.ndarray): 1-D array of indices.
          The length should be the same as the dataset to sample
          data from.
      current_position (int): The current position of an iterator.
  
  Returns:
      numpy.ndarray:
      1-D array of indices. This is the order in which
      examples are sampled from a dataset in the next epoch.
docstr_tok: ["Sample","the","next","order",".","Args",":","current_order","(","numpy.ndarray",")",":","1-D","array","of","indices",".","The","length","should","be","the","same","as","the","dataset","to","sample","data","from",".","current_position","(","int",")",":","The","current","position","of","an","iterator",".","Returns",":","numpy.ndarray",":","1-D","array","of","indices",".","This","is","the","order","in","which","examples","are","sampled","from","a","dataset","in","the","next","epoch","."]
code: def __call__(self, current_order, current_position):
      """Sample the next order.
  
      Args:
          current_order (numpy.ndarray): 1-D array of indices.
              The length should be the same as the dataset to sample
              data from.
          current_position (int): The current position of an iterator.
  
      Returns:
          numpy.ndarray:
          1-D array of indices. This is the order in which
          examples are sampled from a dataset in the next epoch.
  
      """
      raise NotImplementedError
  
file_path: chainer/chainer/iterators/order_samplers.py
imports: import numpy
label_desc: Use image node_id 1 for calling the OrderSampler obj's underlying member method code with example usage: obj.__call__(current_order, current_position) without return types