def METHOD_NAME(tag: str, element_to_write: Optional[Union[Actor, SpdxNoAssertion]], text_output: TextIO):
    if isinstance(element_to_write, Actor):
        write_value(tag, element_to_write.to_serialized_string(), text_output)
    else:
        write_value(tag, element_to_write, text_output)