You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: quantization.m
    path of file: ./repos/Digital-Image-Processing/Color Image Processing
    
    the code of the file until where you have to start completion: function imquantize = qauntization()
  
  % replace `PATH_TO_IMAGE` with actual image file path

    
function imquantize = qauntization()
  
  % replace `PATH_TO_IMAGE` with actual image file path
  impath = 'PATH_TO_IMAGE';

  % read image
  img = imread(impath);

  % convert rgb image to gray image
  imgray = rgb2gray(img);

  % fetch the dimensions of image
  [nr,nc] = size(imgray);

  for i = 1:nr
      for j = 1:nc
        int = imgray(i,j);
        if int>=0 && int<52
          imquantize(i,j) = 0;
        elseif int>=52 && int<104
          imquantize(i,j) = 52;
        elseif int>=104 && int<156
          imquantize(i,j) = 104;
        elseif int>=156 && int<208
          imquantize(i,j) = 156;
        elseif int>=208 && int<256
          imquantize(i,j)=208;
        end