class_docstr: A stats generator which counts the number of missing values in a path.
class_docstr_tok: ["A","stats","generator","which","counts","the","number","of","missing","values","in","a","path","."]
docstr: Generates a key for instances created with the same args passed to init.
  
  Args:
    path: The path in which to count missing rows.
    required_paths: The set of paths among which at least one must be non-null
      in order for a null entry in the array for `path` to contribute to the
      missing count.
  
  Returns:
    The unique key for this set of init args.
docstr_tok: ["Generates","a","key","for","instances","created","with","the","same","args","passed","to","init",".","Args",":","path",":","The","path","in","which","to","count","missing","rows",".","required_paths",":","The","set","of","paths","among","which","at","least","one","must","be","non-null","in","order","for","a","null","entry","in","the","array","for","`","path","`","to","contribute","to","the","missing","count",".","Returns",":","The","unique","key","for","this","set","of","init","args","."]
code: def key(
      cls,
      path: types.FeaturePath,
      required_paths: Optional[Iterable[types.FeaturePath]] = None,
  ) -> Tuple[Union[Text, types.FeaturePath], ...]:
      """Generates a key for instances created with the same args passed to init.
  
      Args:
        path: The path in which to count missing rows.
        required_paths: The set of paths among which at least one must be non-null
          in order for a null entry in the array for `path` to contribute to the
          missing count.
  
      Returns:
        The unique key for this set of init args.
      """
      key_tuple = ("CountMissingGenerator", path)
      if required_paths:
          key_tuple += tuple(sorted(required_paths))
      return key_tuple
  
file_path: data-validation/tensorflow_data_validation/statistics/generators/constituents/count_missing_generator.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import numpy
  from tensorflow_data_validation import types
  from tensorflow_data_validation.statistics.generators import input_batch
  from tensorflow_data_validation.statistics.generators import stats_generator
  from typing import Iterable, Optional, Text, Tuple, Union
label_desc: Use image node_id 2 for calling the CountMissingGenerator obj's underlying member method code with example usage: obj.key(cls, path, required_paths) and returns: key_tuple