code: def initialize_oauth():
      # If token already exists, then just load it
      if os.path.exists("_token.pkl"):
          token = unpickle_object("_token")
          oauth = requests_oauthlib.OAuth2Session(
              client_id,
              redirect_uri=redirect_url,
              scope=scope,
              token=token,
          )
  
      else:
          # Construct a new token after OAuth2 flow
          # Initialize a OAuth2 session
          oauth = requests_oauthlib.OAuth2Session(
              client_id, redirect_uri=redirect_url, scope=scope
          )
  
          authorization_url, state = oauth.authorization_url(auth_url)
          print(
              f"Visit below website and paste access token below : \n\n{authorization_url}\n"
          )
  
          authorization_response = input(
              "Paste authorization response code here :\n"
          )
  
          token = oauth.fetch_token(
              token_url,
              authorization_response=authorization_response,
              code=authorization_response,
              client_secret=api_key,
          )
  
          # Save the token generated
          pickle_object(token, "_token")
  
      return oauth, token
  
file_path: NeMo/scripts/freesound_download_resample/freesound_download.py
imports: import argparse
  import os
  import pickle
  import time
label_desc: Use image node_id 1 for calling a global function with example usage: initialize_oauth() and returns: oauth,  token