  def FromLabelsDict(cls, labels: Dict[str, str]) -> 'K8sSelector':
    """Builds a selector from the given label key-value pairs.

    Args:
      labels (Dict[str, str]): The label key-value pairs.

    Returns:
      K8sSelector: The resulting selector object.
    """
    args = map(lambda k: K8sSelector.Label(k, labels[k]), labels)
    return cls(*args)
Builds a selector from the given label key-value pairs.

Args:
labels (Dict[str, str]): The label key-value pairs.

Returns:
K8sSelector: The resulting selector object.
libcloudforensics/providers/kubernetes/selector.py