code: def leagues(self, year=2019):
          
          if year not in self._leagues:
              self._leagues[year] = leagues(year)
          return self._leagues[year]
docs: Return all leagues in dict {id0: league0, id1: league1}.
  
          :params year: Year.