def unit_to_bytes(in_unit, size):
    """Returns the 'size' in bytes

       Args:
            in_unit: Unit of input data.
                     Supported input ('kb', 'mb', 'gb')
            size: Input size in int or float

       Returns:
            Size in bytes [float/int]
    """
    in_unit = in_unit.lower()

    if in_unit == 'kb':
        size = size * 1024
    elif in_unit == 'mb':
        size = size*(1024**2)
    elif in_unit == 'gb':
        size = size*(1024**3)
    return size