def _Exists(self):
    """Returns true if the affinity group exists."""
    show_cmd = [AZURE_PATH,
                'account',
                'affinity-group',
                'show',
                '--json',
                self.name]
    stdout, _, _ = vm_util.IssueCommand(show_cmd, suppress_warning=True)
    try:
      json.loads(stdout)
    except __HOLE__:
      return False
    return True
dataset/ETHPy150Open GoogleCloudPlatform/PerfKitBenchmarker/perfkitbenchmarker/providers/azure/azure_network.py/AzureAffinityGroup._Exists