def METHOD_NAME(self) -> None:
    """Test creating a constant.
    """
    # Scalar constant.
    shape = (1, 1)
    mat = create_const(1.0, shape)
    self.assertEqual(mat.shape, shape)
    self.assertEqual(len(mat.args), 0)
    self.assertEqual(mat.type, SCALAR_CONST)
    assert mat.data == 1.0
    # Dense matrix constant.
    shape = (5, 4)
    mat = create_const(np.ones(shape), shape)
    self.assertEqual(mat.shape, shape)
    self.assertEqual(len(mat.args), 0)
    self.assertEqual(mat.type, DENSE_CONST)
    assert (mat.data == np.ones(shape)).all()
    # Sparse matrix constant.
    shape = (5, 5)
    mat = create_const(sp.eye(5), shape, sparse=True)
    self.assertEqual(mat.shape, shape)
    self.assertEqual(len(mat.args), 0)
    self.assertEqual(mat.type, SPARSE_CONST)
    assert (mat.data.todense() == sp.eye(5).todense()).all()