def METHOD_NAME(
    self,
    code: Optional[str] = None,
    yml: Optional[dict] = None,
    readme: Optional[str] = None,
    description: Optional[str] = None,
    changelog: Optional[str] = None,
    image: Optional[bytes] = None,
):
    """Writes not None objects to files."""
    if code is not None:
        self.code.write(code)
    else:
        self.code.write("from CommonServerPython import *\n\n\n")
    self.test.write("from CommonServerPython import *\n\n\n")
    if yml is None:
        yml = {}
    self.yml.write_dict(yml)
    if readme is not None:
        self.readme.write(readme)
    if description is not None:
        self.description.write(description)
    if changelog is not None:
        self.changelog.write(changelog)
    if image is not None:
        self.image.write_bytes(image)
    if self.create_unified:
        output_yml_path = Path(self.path).with_name(
            f"{self.prefix}-{self.name}.yml"
        )
        self.yml = YAML(
            output_yml_path,
            self._repo.path,
            IntegrationScriptUnifier.unify(Path(self.yml.path), yml),
        )
        self.readme = File(
            output_yml_path.with_name(
                output_yml_path.name.replace(".yml", "_README.md")
            ),
            self._repo.path,
        )
        self.path = str(output_yml_path)
        shutil.rmtree(self._tmpdir_integration_path)