code: def _WritesString(self, content):
      
      content_bytes = codecs.encode(content, 'utf-8')
      self._sample_file.write(content_bytes)
docs: Writes a string to the sample file.
  
      Args:
        content (str): content to write to the sample file.