Implement a Python function named is_valley that determines if a given list of integers contains exactly one "valley". A valley is defined as a contiguous subarray where all elements are the same, and it must be surrounded by elements that are greater than the valley's value.
Requirements
The function should take a single argument:
a: a list of integers (1 ≤ len(a) ≤ 10^5), where each element can be any integer value within the range of a typical 32-bit integer.
The function should return a boolean value:
True if there is exactly one valley in the input list.
The solution must be written in a file called /app/solution.py. Ensure that the function adheres to the provided signature and does not contain any additional prints or prompts.