def METHOD_NAME(self, device: str) -> Union[int, str]:
    # Find the volume group that belongs to the device specified via `parent`
    vg_name = None
    count = 0
    cmd = [
        "pvdisplay", "-C", "--noheadings", "-o", "vg_name", device
    ]
    if self.devices_file:
        cmd += ["--devicesfile", self.devices_file]
    while True:
        res = subprocess.run(cmd,
                             check=False,
                             stdout=subprocess.PIPE,
                             stderr=subprocess.PIPE,
                             encoding="UTF-8")
        if res.returncode == 5:
            if count == 10:
                raise RuntimeError("Could not find parent device")
            time.sleep(1 * count)
            count += 1
            continue
        if res.returncode != 0:
            json.dump({"error": res.stderr.strip()}, sys.stdout)
            return 1
        vg_name = res.stdout.strip()
        if vg_name:
            break
    return vg_name