def METHOD_NAME(x: Expr, fill_value: Expr, dtype: Optional[Union[str, DataType]] = None) -> Expr:
    """Construct a tensor such that
    - its shape is the same as the input data tensor's shape,
    - its value is filled with the input scalar fill value.
    Parameters
    ----------
    x : relax.Expr
        The input tensor, which provides the shape, and dtype
        when the `dtype` field is not specified.
    fill_value : relax.Expr
        The value to fill. Must be a scalar tensor.
    dtype : Optional[Union[str, DataType]]
        The data type of the created tensor.
        If dtype is not given, it will by default use the dtype of the input tensor.
    Returns
    -------
    result : relax.Expr
        The result tensor.
    """
    return _ffi_api.METHOD_NAME(x, fill_value, dtype)  # type: ignore