code: def pprint(self, num=10):
          
  
          def pprint_map(time_, rdd):
              print('>>> Time: {}'.format(time_))
              data = rdd.take(num + 1)
              for d in data[:num]:
                  py_pprint.pprint(d)
              if len(data) > num:
                  print('...')
              print('')
  
          self.foreachRDD(pprint_map)
docs: Print the first ``num`` elements of each RDD.
  
          :param int num: Set number of elements to be printed.