code: def list_packets(self, raw_data):
          
          args = ["--list-packets"]
          result = self._result_map['packets'](self)
          self._handle_io(args, _make_binary_stream(raw_data, self._encoding),
                          result)
          return result
docs: List the packet contents of a file.