<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def dKdLen_of_r(self, r, dimCheck, lengthscale):
 		""" 		Compute derivative of kernel for dimension wrt lengthscale 		Computation of derivative changes when lengthscale corresponds to 		the dimension of the kernel whose derivate is being computed. 		"""

		if (dimCheck == True):
			return (self.variance**(float(1)/self.originalDimensions)) * np.exp(-0.5 * r**2) * (r**2) / (lengthscale**(float(1)/self.originalDimensions))
		else:
			return (self.variance**(float(1)/self.originalDimensions)) * np.exp(-0.5 * r**2) / (lengthscale**(float(1)/self.originalDimensions))