code: def is_model_admin_subclass(node):
      
      if node.name[-5:] != 'Admin' or isinstance(node.parent, ClassDef):
          return False
  
      return node_is_subclass(node, 'django.contrib.admin.options.ModelAdmin')
docs: Checks that node is derivative of ModelAdmin class.