'Check the status of an import task.'

@g_connect
def get_import_task(self, task_id=None, github_user=None, github_repo=None):

    url = ('%s/imports/' % self.baseurl)
    if (task_id is not None):
        url = ('%s?id=%d' % (url, task_id))
    elif ((github_user is not None) and (github_repo is not None)):
        url = ('%s?github_user=%s&github_repo=%s' % (url, github_user, github_repo))
    else:
        raise AnsibleError('Expected    task_id    or    github_user    and    github_repo')
    data = self.__call_galaxy(url)
    return data['results']
