original_docstring: 
          Transform RGB image to grayscale image
  
          Args:
              image: the input RGB image
                     type: ndarray, shape: (dim1,dim2)
  
          Return:
              the transformed grayscale image
          
docstring: Transform RGB image to grayscale image
docstring_tokens: Transform RGB image to grayscale image
code: def rgb2gray(image):
      '''
          Transform RGB image to grayscale image
  
          Args:
              image: the input RGB image
                     type: ndarray, shape: (dim1,dim2)
  
          Return:
              the transformed grayscale image
          '''
      return cv2.cvtColor(image,cv2.COLOR_BGR2GRAY)
code_tokens: def rgb2gray ( image ) : return cv2 . cvtColor ( image , cv2 . COLOR_BGR2GRAY )
short_docstring: Transform RGB image to grayscale image
short_docstring_tokens: Transform RGB image to grayscale image
comment: '''
          Transform RGB image to grayscale image
  
          Args:
              image: the input RGB image
                     type: ndarray, shape: (dim1,dim2)
  
          Return:
              the transformed grayscale image
          '''