def METHOD_NAME():
    assert cirq.dot(2) == 2
    assert cirq.dot(2.5, 2.5) == 6.25
    a = np.array([[1, 2], [3, 4]])
    b = np.array([[5, 6], [7, 8]])
    assert cirq.dot(a) is not a
    np.testing.assert_allclose(cirq.dot(a), a, atol=1e-8)
    np.testing.assert_allclose(cirq.dot(a, b), np.dot(a, b), atol=1e-8)
    np.testing.assert_allclose(cirq.dot(a, b, a), np.dot(np.dot(a, b), a), atol=1e-8)
    # Invalid use
    with pytest.raises(ValueError):
        cirq.dot()