def METHOD_NAME(pipeline: EnvironmentPipeline, **kwargs) -> int:
    # language=rst
    """
    Selects an action randomly from the action space.
    :param pipeline: EnvironmentPipeline with environment that has an integer action
        space.
    :return: Action randomly sampled over size of pipeline's action space.
    """
    # Choose action randomly from the action space.
    # return np.random.choice(pipeline.env.action_space.n)
    return torch.randint(low=0, high=pipeline.env.action_space.n, size=(1,))[0]