<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_source_name(self, name):
 """Return the name of a source as it is defined in the pyLikelihood model object."""

        if name not in self.like.sourceNames():
            name = self.roi.get_source_by_name(name).name
        return name