Unusual error while using control_guidance_start and control_guidance_end

I am trying to run a diffusion pipeline on a server and while passing the control_guidance_start and control_guidance_end arguments to the call function I got the following error:

StableDiffusionControlNetPipeline.call() got an unexpected keyword argument ‘control_guidance_start’

I cannot fathom why this would be an error considering that same argument is clearly mentioned in the StableDiffusionControlNetPipeline docs where I copied it from.

For reference this is the code I am using to call the pipeline:
images = pipe(
params.prompt,
images,
height=params.height,
width=params.width,
num_inference_steps=params.num_inference_steps,
guidance_scale=params.guidance_scale,
controlnet_conditioning_scale = params.control_weight,
control_guidance_start = params.control_guidance_start,
control_guidance_end = params.control_guidance_end,
num_images_per_prompt=params.num_images_per_prompt,
negative_prompt=params.negative_prompt,
generator=generator,
).images

Any help would be appreciated : )

Edit: I found the problem. My diffusers library was of version 0.16.0 and the docs I was following were for the version 0.23.1. Changing the library version fixed the issue.