  def GetLabels(self) -> Dict[str, Any]:
    """Get all labels of a compute resource.

    Returns:
      Dict: A dictionary of all labels.
    """

    operation = self.GetOperation()  # type: Dict[str, Dict[str, Any]]
    labels = operation.get('labels')
    if labels:
      return labels
    return {}
Get all labels of a compute resource.

Returns:
Dict: A dictionary of all labels.
libcloudforensics/providers/gcp/internal/compute_base_resource.py