def is_range(obj):
    """Helper function to test if object is valid "range"."""
    keys = ['start', 'step', 'stop']
    return isinstance(obj, dict) and all(k in obj for k in keys) and \
           all(isinstance(obj[k], float) for k in keys)