code: def GetLVMLogicalVolumeByPathSpec(self, path_spec):
      
      volume_index = lvm.LVMPathSpecGetVolumeIndex(path_spec)
      if volume_index is None:
        return None
      return self._vslvm_volume_group.get_logical_volume(volume_index)
docs: Retrieves a LVM logical volume for a path specification.
  
      Args:
        path_spec (PathSpec): path specification.
  
      Returns:
        pyvslvm.logical_volume: a LVM logical volume or None if not available.