Get the data range of the array's component

def get_range_info(array, component):
    """Get the data range of the array's component"""
    r = array.GetRange(component)
    comp_range = {}
    comp_range['min'] = r[0]
    comp_range['max'] = r[1]
    comp_range['component'] = array.GetComponentName(component)
    return comp_range