class_docstr: A generator which tracks the min/max list length diffs for two paths.
class_docstr_tok: ["A","generator","which","tracks","the","min\/max","list","length","diffs","for","two","paths","."]
docstr: Generates key for an instance created with the same args passed to init.
  
  Args:
    left_path: The path whose list lengths should be treated as the left side
      of the difference.
    right_path: The path whose list lengths should be treated as the right
      side of the difference.
    required_paths: The set of paths which must all be non-null in order for a
      length diff in the arrays for `left_path` and `right_path` to contribute
      to the accumulated min and max.
  
  Returns:
    The unique key for this set of init args.
docstr_tok: ["Generates","key","for","an","instance","created","with","the","same","args","passed","to","init",".","Args",":","left_path",":","The","path","whose","list","lengths","should","be","treated","as","the","left","side","of","the","difference",".","right_path",":","The","path","whose","list","lengths","should","be","treated","as","the","right","side","of","the","difference",".","required_paths",":","The","set","of","paths","which","must","all","be","non-null","in","order","for","a","length","diff","in","the","arrays","for","`","left_path","`","and","`","right_path","`","to","contribute","to","the","accumulated","min","and","max",".","Returns",":","The","unique","key","for","this","set","of","init","args","."]
code: def key(
      cls,
      left_path: types.FeaturePath,
      right_path: types.FeaturePath,
      required_paths: Optional[Iterable[types.FeaturePath]] = None,
  ) -> Tuple[Union[Text, types.FeaturePath], ...]:
      """Generates key for an instance created with the same args passed to init.
  
      Args:
        left_path: The path whose list lengths should be treated as the left side
          of the difference.
        right_path: The path whose list lengths should be treated as the right
          side of the difference.
        required_paths: The set of paths which must all be non-null in order for a
          length diff in the arrays for `left_path` and `right_path` to contribute
          to the accumulated min and max.
  
      Returns:
        The unique key for this set of init args.
      """
      key_tuple = ("LengthDiffGenerator", left_path, right_path)
      if required_paths:
          key_tuple += tuple(sorted(required_paths))
      return key_tuple
  
file_path: data-validation/tensorflow_data_validation/statistics/generators/constituents/length_diff_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 LengthDiffGenerator obj's underlying member method code with example usage: obj.key(cls, left_path, right_path, required_paths) and returns: key_tuple