  def GetImageFamily(self, image_family: str,
                     project: Optional[str] = None) -> Dict[str, Any]:
    """Get image family API object in specified project.

    Args:
      image_family: Name of the image famiky.
      project: Project to get the image family API object from.

    Returns:
      The selected image family API resource:
      https://cloud.google.com/compute/docs/reference/rest/v1/images/getFromFamily  # pylint: disable=line-too-long

    Raises:
      HttpError if getting image object for the given image family name fails.
    """
    images_client = self.GceApi().images() # pylint: disable=no-member
    params = {'project': project, 'family': image_family}
    # Safe to unpack, response is not paged.
    return common.ExecuteRequest(images_client, 'getFromFamily', params)[0]
Get image family API object in specified project.

Args:
image_family: Name of the image famiky.
project: Project to get the image family API object from.

Returns:
The selected image family API resource:
https://cloud.google.com/compute/docs/reference/rest/v1/images/getFromFamily  # pylint: disable=line-too-long

Raises:
HttpError if getting image object for the given image family name fails.
libcloudforensics/providers/gcp/internal/compute.py