'Returns a TorrentGroup for the passed ID, associated with this API object.'

def get_torrent_group(self, id):

    id = int(id)
    if (id in self.cached_torrent_groups.keys()):
        return self.cached_torrent_groups[id]
    else:
        return TorrentGroup(id, self)
