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