code: def _view_use_legacy_sql_getter(table):
      
      view = table._properties.get("view")
      if view is not None:
          # The server-side default for useLegacySql is True.
          return view.get("useLegacySql", True)
      # In some cases, such as in a table list no view object is present, but the
      # resource still represents a view. Use the type as a fallback.
      if table.table_type == "VIEW":
          # The server-side default for useLegacySql is True.
          return True
docs: bool: Specifies whether to execute the view with Legacy or Standard SQL.
  
      This boolean specifies whether to execute the view with Legacy SQL
      (:data:`True`) or Standard SQL (:data:`False`). The client side default is
      :data:`False`. The server-side default is :data:`True`. If this table is
      not a view, :data:`None` is returned.
  
      Raises:
          ValueError: For invalid value types.