<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _write(self, data):
 """Write data to config file."""

        stream = yaml.dump(data, default_flow_style=False)
        self.path.write_text(stream)