<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_loom(self, filename: PathLike, write_obsm_varm: bool = False):
 """Write ``.loom``-formatted hdf5 file. Parameters filename The filename. """

        from .readwrite.write import write_loom
        write_loom(filename, self, write_obsm_varm = write_obsm_varm)