code: def trilu(
      x: Union[tf.Tensor, tf.Variable],
      /,
      *,
      k: int = 0,
      upper: bool = True,
      out: Optional[Union[tf.Tensor, tf.Variable]] = None,
  ) -> Union[tf.Tensor, tf.Variable]:
      if upper:
          return tf.experimental.numpy.triu(x, k)
      return tf.experimental.numpy.tril(x, k)
  
file_path: ivy/ivy/functional/backends/tensorflow/experimental/creation.py
imports: from typing import Union, Optional, Tuple
  import tensorflow
  from ivy.func_wrapper import with_unsupported_device_and_dtypes, with_unsupported_dtypes
  from ..None import backend_version
label_desc: Use image node_id 9 for calling a global function with example usage: trilu() and returns: tf, tf