def _get_valid_metric_options():
    invalid_metrics = ['ABCMeta', 'Metric', 'UnaryMetric', 'BinaryMetric']

    # Consider all Unary Metrics invalid. At the moment, the UI cannot handle
    # running Unary Metrics.
    unary_metrics = [cls.__name__ for cls in metrics.UnaryMetric.__subclasses__()]
    invalid_metrics += unary_metrics

    return {name:obj
            for name, obj in inspect.getmembers(metrics)
            if inspect.isclass(obj) and name not in invalid_metrics}
Initialize a customized Baidu geocoder using the v2 API.
dataset/ETHPy150Open apache/climate/ocw-ui/backend/processing.py/_get_valid_metric_options--crossover with--dataset/ETHPy150Open geopy/geopy/geopy/geocoders/baidu.py/Baidu.__init__