code: def is_urls_module_valid_constant(node):
      
      if node.name not in ('urlpatterns', 'app_name'):
          return False
  
      parent = node.parent
      while not isinstance(parent, Module):
          parent = parent.parent
  
      if not parent.name.endswith('urls'):
          return False
  
      return True
docs: Suppress warnings for valid constants in urls module.