code: def _is_scope_prefix(scope_name, prefix_name):
    
  
    if not prefix_name:
      return True
  
    if not scope_name.endswith("/"):
      scope_name += "/"
  
    if not prefix_name.endswith("/"):
      prefix_name += "/"
  
    return scope_name.startswith(prefix_name)
docs: Checks that `prefix_name` is a proper scope prefix of `scope_name`.