code: def class_filter(classes, class_name):
      
      result_classes = classes
      if isinstance(class_name, list):
          if set(class_name) <= set(classes):
              result_classes = class_name
      return result_classes
docs: Filter classes by comparing two lists.
  
      :param classes: matrix classes
      :type classes: list
      :param class_name: sub set of classes
      :type class_name : list
      :return: filtered classes as list