code: def __last_sequences(input_list, inverted, accept_zero):
      """
      Last sequences of items.
  
      Parameters
      ----------
      input_list : list
          Input item list
      inverted : boolean
          If inverted=True, then the resulted sequence starts with full length
      accept_zero : boolean
          If accept_zero=True, then the resulted sequences contains empty
  
      Returns
      -------
      list
          Last sequences of original list
      """
      if inverted:
          step = -1
          if accept_zero:
              begin = len(input_list) + 1
              end = -1
          else:
              begin = len(input_list) + 1
              end = 0
      else:
          step = 1
          if accept_zero:
              begin = 0
              end = len(input_list) + 1
          else:
              begin = 1
              end = len(input_list) + 1
  
      return [
          input_list[:possible_length]
          for possible_length in range(begin, end, step)
      ]
  
file_path: AIX360/aix360/algorithms/rule_induction/ripper/pruning.py
imports: import numba
  import numpy
  from aix360.algorithms.rule_induction.ripper.binding import _rule_predict, _rule_list_predict
  from aix360.algorithms.rule_induction.ripper.mdl import _mdl
label_desc: Use image node_id 3 for calling a global function with example usage: __last_sequences(input_list, inverted, accept_zero) and returns: unknown