def METHOD_NAME(matrix_service: MatrixService) -> CommandContext:
    """
    Fixture for creating a CommandContext object.
    Args:
        matrix_service: The MatrixService object.
    Returns:
        CommandContext: The CommandContext object.
    """
    # sourcery skip: inline-immediately-returned-variable
    command_context = CommandContext(
        generator_matrix_constants=GeneratorMatrixConstants(matrix_service=matrix_service),
        matrix_service=matrix_service,
        patch_service=PatchService(repository=Mock(spec=StudyMetadataRepository)),
    )
    return command_context