harbor run -t openthoughts/tasktrove-exp-rle-adversarial-5k-adversarial-2430harbor download openthoughts/tasktrove-exp-rle-adversarial-5k-adversarial-2430Task Description: Implement a new Categorical random variable class in probnum.randvars that satisfies the provided tests by exposing a well-defined interface and specific behaviors for probabilities, support, sampling, PMF evaluation, mode computation, and resampling.
What to implement
Initialization
Public attributes/properties
Behavior and methods required by tests
sample(size=())
pmf(x)
mode
resample()
Additional design notes
Implementation constraints
Outcome
Output only the instruction: