[{'role': 'system', 'content': "You are an expert in machine learning and your task is to classify code snippets into one of the following categories: ['helper_functions', 'load_data', 'data_exploration', 'data_preprocessing', 'evaluation', 'modelling', 'prediction', 'result_visualization', 'save_results', 'comment_only']."}, {'role': 'user', 'content': 'Identify the single most appropriate category to which the provided code belongs. Provide your response as a single category label without any additional information, commentary, or personal opinions.\\nPython Code:def is_in(rect1, rect2):\n"""True if rect2 is inside rect 1"""\nreturn rect2[0] > rect1[0] and rect2[0] < rect1[2] and rect2[2] > rect1[0] and rect2[2] < rect1[2] and \\\nrect2[1] > rect1[1] and rect2[1] < rect1[3] and rect2[3] > rect1[1] and rect2[3] < rect1[3]\ndef is_outside(rect1, rect2):\n"""True if rect2 is outside rect 1"""\nreturn rect2[0] > rect1[2] or rect2[2] < rect1[0] or rect2[1] > rect1[3] or rect2[3] < rect1[1]\ndef find_negatives(image):\npos = image[[\'x1\', \'y1\', \'x2\', \'y2\']].values\nnegatives = []\nwidth = image_gray.shape[1]\nheight = image_gray.shape[0]\nfor i in range(width-512):\nfor j in range(height-256):\nif i % 50 == 0 and j % 50 == 0:\nrect = [i, j, i+512, j+256]\nif is_outside(rect, pos):\nnegatives.append(rect)\nreturn negatives\ndef find_positives(image):\npos = image[[\'x1\', \'y1\', \'x2\', \'y2\']].values\npositives = []\nwidth = image_gray.shape[1]\nheight = image_gray.shape[0]\nx_start = max(pos[2]-510, 0)\nx_end = min(pos[0], width-515)\ny_start = max(pos[3]-250, 0)\ny_end = min(pos[1], height-260)\nif x_start < x_end and y_start < y_end:\nfor i in range(10):\nx = random.randint(x_start, x_end)\ny = random.randint(y_start, y_end)\npositives.append([x, y, x+512, y+256])\nreturn positives\nrow = plates.iloc[15]\nimage_color = skimage.io.imread(INPUT_FOLDER + row.values[0])\nimage_gray = skimage.color.rgb2gray(image_color)\nxs = find_positives(row)\nys = find_negatives(row)\nplot_record(image_gray, xs[7])\nlen(xs)'}, {'role': 'assistant', 'content': 'data_preprocessing'}]