code: def list_lvm_volume_group(block_device):
      '''
      List LVM volume group associated with a given block device.
  
      Assumes block device is a valid LVM PV.
  
      :param block_device: str: Full path of block device to inspect.
  
      :returns: str: Name of volume group associated with block device or None
      '''
      vg = None
      pvd = check_output(['pvdisplay', block_device]).splitlines()
      for lvm in pvd:
          lvm = lvm.decode('UTF-8')
          if lvm.strip().startswith('VG Name'):
              vg = ' '.join(lvm.strip().split()[2:])
      return vf list_lvm_volume_group(block_device):
      '''
      List LVM volume group associated with a given block device.
  
      Assumes block device is a valid LVM PV.
  
      :param block_device: str: Full path of block device to inspect.
  
      :returns: str: Name of volume group associated with block device or None
      '''
      vg = None
      pvd = check_output(['pvdisplay', block_device]).splitlines()
      for lvm in pvd:
          lvm = lvm.decode('UTF-8')
          if lvm.strip().startswith('VG Name'):
              vg = ' '.join(lvm.strip().split()[2:])
      return vg
docs: List LVM volume group associated with a given block device.
  
      Assumes block device is a valid LVM PV.
  
      :param block_device: str: Full path of block device to inspect.
  
      :returns: str: Name of volume group associated with block device or None