code: def constant_pad(
      x: np.ndarray,
      /,
      pad_width: List[List[int]],
      *,
      value: Number = 0.0,
      out: Optional[np.ndarray] = None,
  ) -> np.ndarray:
      return np.pad(
          _flat_array_to_1_dim_array(x),
          pad_width,
          constant_values=value,
      )
  
imports: import math
  from numbers import Number
  from typing import Union, Tuple, Optional, List, Sequence
  import numpy
  import ivy
  from ivy.func_wrapper import with_unsupported_dtypes
  from .None import backend_version
label_desc: Use image node_id 13 for calling a global function with example usage: constant_pad(pad_width) and returns: np