code: def weighted_moments_v2(
      x, axes, frequency_weights, keepdims=False, name=None
  ):
      """Returns the frequency-weighted mean and variance of `x`.
  
      Args:
        x: A tensor.
        axes: 1-d tensor of int32 values; these are the axes along which
          to compute mean and variance.
        frequency_weights: A tensor of positive weights which can be
          broadcast with x.
        keepdims: Produce moments with the same dimensionality as the input.
        name: Name used to scope the operation.
  
      Returns:
        Two tensors: `weighted_mean` and `weighted_variance`.
      """
      return weighted_moments(
          x=x,
          axes=axes,
          frequency_weights=frequency_weights,
          name=name,
          keep_dims=keepdims,
      )
  
imports: import math
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import array_ops_stack
  from tensorflow.python.ops import candidate_sampling_ops
  from tensorflow.python.ops import cond
  from tensorflow.python.ops import ctc_ops
  from tensorflow.python.ops import custom_gradient
  from tensorflow.python.ops import embedding_ops
  from tensorflow.python.ops import gen_nn_ops
  from tensorflow.python.ops import gen_sparse_ops
  from tensorflow.python.ops import linalg_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import nn_fused_batch_norm_grad
  from tensorflow.python.ops import nn_ops
  from tensorflow.python.ops import variables
  from tensorflow.python.platform import device_context
  from tensorflow.python.util import dispatch
  from tensorflow.python.util.deprecation import deprecated_args
  from tensorflow.python.util.deprecation import deprecated_argument_lookup
  from tensorflow.python.util.tf_export import tf_export
label_desc: Use image node_id 22 for calling a global function with example usage: weighted_moments_v2(x, axes, frequency_weights, keepdims, name) and returns: weighted_moments