def get_metrics_instance():
 from stream_framework import settings
 metric_cls = get_class_from_string(settings.STREAM_METRIC_CLASS)
 return metric_cls(**settings.STREAM_METRICS_OPTIONS)

def get_metrics_instance ( ) : from stream_framework import settings metric_cls = get_class_from_string ( settings . STREAM_METRIC_CLASS ) return metric_cls ( ** settings . STREAM_METRICS_OPTIONS )
returns an instance of the metric class as defined in stream_framework settings .