code: def _write_session(self):
          
          base_name = "%ssession" % self._product_accronym.lower()
          filename = "%s%s.py" % (self._class_prefix.lower(), base_name)
          override_content = self._extract_override_content(base_name)
  
          self.write(destination=self.output_directory, filename=filename, template_name="session.py.tpl",
                     version=self.api_version,
                     product_accronym=self._product_accronym,
                     class_prefix=self._class_prefix,
                     root_api=self.api_root,
                     api_prefix=self.api_prefix,
                     override_content=override_content,
                     header=self.header_content)
docs: Write SDK session file
  
              Args:
                  version (str): the version of the server