class_docstr: Calculate the number of distinct values contained in all the results in
  the group for the given field
class_docstr_tok: ["Calculate","the","number","of","distinct","values","contained","in","all","the","results","in","the","group","for","the","given","field"]
code: def __init__(self, field: str) -> None:
      super().__init__(field)
  
imports: from typing import Union
  from .aggregation import Asc, Desc, Reducer, SortDirection
label_desc: Use image node_id 1 to create a new count_distinct object from inherited base classes: FieldOnlyReducer with example: obj = count_distinct(field)