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