code: def save_creds_to_file(creds, file_path):
      with open(file_path, "w") as token:
          data = credentials_to_dict(creds)
          token.write(json.dumps(data))
  
file_path: mindsdb/mindsdb/integrations/handlers/gmail_handler/utils.py
imports: import datetime
  import json
  from google_auth_oauthlib.flow import Flow
label_desc: Use image node_id 3 for calling a global function with example usage: save_creds_to_file(creds, file_path) without return types