<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def by_id(self, region, league_id):
 """ Get league with given ID, including inactive entries :param string region: the region to execute this request on :param string league_id: the league ID to query :returns: LeagueListDTO """

        url, query = LeagueApiV4Urls.by_id(region=region, league_id=league_id)
        return self._raw_request(self.by_id.__name__, region, url, query)