It is also possible to query the star clusters by label, here is an example of querying for the star cluster labeled Berkeley 59

    http://star-api.herokuapp.com/api/v1/open_cluster/Berkeley 59

def search_star_cluster(cluster):
    '''
    It is also possible to query the star clusters by label, here is an example of querying for the star cluster labeled Berkeley 59

    http://star-api.herokuapp.com/api/v1/open_cluster/Berkeley 59
    '''

    base_url = "http://star-api.herokuapp.com/api/v1/open_cluster/"

    if not isinstance(cluster, str):
        raise ValueError("The cluster arg you provided is not the type of str")
    else:
        base_url += cluster

    return dispatch_http_get(base_url)