code: def _write_model(self, specification, specification_set):
          
          filename = "%s%s.py" % (self._class_prefix.lower(), specification.entity_name.lower())
  
          override_content = self._extract_override_content(specification.entity_name)
          constants = self._extract_constants(specification)
          superclass_name = "NURESTRootObject" if specification.rest_name == self.api_root else "NURESTObject"
  
          self.write(destination=self.output_directory, filename=filename, template_name="model.py.tpl",
                     specification=specification,
                     specification_set=specification_set,
                     version=self.api_version,
                     class_prefix=self._class_prefix,
                     product_accronym=self._product_accronym,
                     override_content=override_content,
                     superclass_name=superclass_name,
                     constants=constants,
                     header=self.header_content)
  
          self.model_filenames[filename] = specification.entity_name
docs: Write autogenerate specification file