code: def get_color_codes(y):
      """Internal function to generate color codes for inliers and outliers.
      Inliers (0): blue; Outlier (1): red.
  
      Parameters
      ----------
      y : list or numpy array of shape (n_samples,)
          The ground truth. Binary (0: inliers, 1: outliers).
  
      Returns
      -------
      c : numpy array of shape (n_samples,)
          Color codes.
  
      """
      y = column_or_1d(y)
  
      # inliers are assigned blue
      c = np.full([len(y)], "b", dtype=str)
      outliers_ind = np.where(y == 1)
  
      # outlier are assigned red
      c[outliers_ind] = "r"
  
      return c
  
imports: import matplotlib.pyplot
  from matplotlib.lines import Line2D
  from sklearn.utils import check_X_y
label_desc: Use image node_id 2 for calling a global function with example usage: get_color_codes(y) and returns: c