code: def mean(
      x: Union[tf.Tensor, tf.Variable],
      /,
      *,
      axis: Optional[Union[int, Sequence[int]]] = None,
      keepdims: bool = False,
      out: Optional[Union[tf.Tensor, tf.Variable]] = None,
  ) -> Union[tf.Tensor, tf.Variable]:
      axis = tuple(axis) if isinstance(axis, list) else axis
      return tf.math.reduce_mean(x, axis=axis, keepdims=keepdims)
  
file_path: ivy/ivy/functional/backends/tensorflow/statistical.py
imports: import tensorflow
  from typing import Union, Optional, Sequence
  import ivy
  from ivy.func_wrapper import with_unsupported_dtypes
  from .None import backend_version
  from ivy.utils.einsum_parser import legalise_einsum_expr
label_desc: Use image node_id 3 for calling a global function with example usage: mean() and returns: tf