'See if a volume is a member of the given storage group.
:param array: the array serial number
:param device_id: the device id
:param storagegroup: the storage group name
:returns: bool'

def is_volume_in_storagegroup(self, array, device_id, storagegroup):

    is_vol_in_sg = False
    sg_list = self.get_storage_groups_from_volume(array, device_id)
    if (storagegroup in sg_list):
        is_vol_in_sg = True
    return is_vol_in_sg
