human
Solve the following python programming problem given the following code:
def _CheckGoogScopeCalls(self, start_token) : 
    'Check goog.scope calls for lint/usage errors.' 
    def IsScopeToken(token) : 
        return ((token.type is javascripttokens.JavaScriptTokenType.IDENTIFIER) and (token.string == 'goog.scope')) 
scope_tokens = [t for t in start_token if IsScopeToken (t)] 
    for token in scope_tokens : 
        scope_context = token.metadata.context 
        if (not ((scope_tokens.type == ecmametadatapass.EcmaContext.STATEMENT) and (scope_context.parent.type == ecmametadatapass.EcmaContext.ROOT))) : 
            self._MaybeReportError (error.Error (errors.INVALID_USE_OF_GOOG_SCOPE, 'goog.scope call not in global scope', token)) 
for token in scope_tokens [1 :] : 
        self._MaybeReportError (error.Error (errors.EXTRA_GOOG_SCOPE_USAGE, 'More than one goog.scope call in file.', token)) 

    
    

    Fix the buggy line: if (not ((scope_tokens.type == ecmametadatapass.EcmaContext.STATEMENT) and (scope_context.parent.type == ecmametadatapass.EcmaContext.ROOT))) :
assistant
#Here is Python code to fix the buggy line: if (not ((scope_tokens.

if (not ((scope_context.type == ecmametadatapass.EcmaContext.STATEMENT) and (scope_context.parent.type == ecmametadatapass.EcmaContext.ROOT))) :