<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def scheduler(self):
 """Returns the scheduler object."""

        if self._scheduler is None:
            self._scheduler = xenon.Scheduler.create(**self.scheduler_args)

        return self._scheduler