code: def __tf_unflatten__(cls, metadata, leaves):
      mask = metadata[0]
      value1 = leaves[0]
      value2 = leaves[1]
      return MaskedValuePair(mask=mask, value1=value1, value2=value2)
  
imports: import dataclasses
  from typing import Any
  from tensorflow.core.function.trace_type import custom_nest_trace_type
  from tensorflow.core.function.trace_type import default_types
  from tensorflow.python.platform import test
  from tensorflow.python.types import trace
label_desc: Use image node_id 2 for calling the MaskedValuePair obj's underlying member method code with example usage: obj.__tf_unflatten__(cls, metadata, leaves) and returns: MaskedValuePair