def get_method_color(method):
    """
    Return color given the method name.
    """
    color = {}
    color['Random'] = 'blue'
    color['Target'] = 'cyan'
    color['Minority'] = 'cyan'
    color['Loss'] = 'yellow'
    color['BoostIn'] = 'orange'
    color['LeafInfSP'] = 'brown'
    color['TREX'] = 'green'
    color['TreeSim'] = 'mediumseagreen'
    color['InputSim'] = 'gray'
    color['LOO'] = 'red'
    color['SubSample'] = 'rebeccapurple'
    color['LeafInfluence'] = 'brown'
    color['LeafRefit'] = 'gray'

    assert method in color, f'{method} not in color dict'
    return color[method]