code: def differentiate_masked_time_series(masked_time_series):
      time_series, is_missing = masked_time_series
      return MaskedTimeSeries(
          time_series=time_series[..., 1:, :]
          - time_series[..., :-1, :],
          is_missing=(
              None
              if is_missing is None
              else is_missing[..., 1:] | is_missing[..., :-1]
          ),
      )
  
file_path: probability/tensorflow_probability/python/sts/internal/missing_values_util.py
imports: import collections
  import numpy
  import tensorflow.compat.v2
  from tensorflow_probability.python.internal import prefer_static
  from tensorflow_probability.python.internal import tensorshape_util
label_desc: Use image node_id 3 for calling a global function with example usage: differentiate_masked_time_series(masked_time_series) and returns: MaskedTimeSeries