code: def _generate_warc_filename(self, meta=False):
          '''Return a suitable WARC filename.'''
          if self._params.max_size is None:
              sequence_name = ''
          elif meta:
              sequence_name = '-meta'
          else:
              sequence_name = '-{0:05d}'.format(self._sequence_num)
  
          if self._params.compress:
              extension = 'warc.gz'
          else:
              extension = 'warc'
  
          return '{0}{1}.{2}'.format(
              self._prefix_filename, sequence_name, extension
          f _generate_warc_filename(self, meta=False):
          '''Return a suitable WARC filename.'''
          if self._params.max_size is None:
              sequence_name = ''
          elif meta:
              sequence_name = '-meta'
          else:
              sequence_name = '-{0:05d}'.format(self._sequence_num)
  
          if self._params.compress:
              extension = 'warc.gz'
          else:
              extension = 'warc'
  
          return '{0}{1}.{2}'.format(
              self._prefix_filename, sequence_name, extension
          )
docs: Return a suitable WARC filename.