code: def main():
      g = Github(os.environ["GITHUB_TOKEN"])
      repo = g.get_repo("allenai/allennlp")
      open_issues = repo.get_issues(state="open")
  
      for issue in open_issues:
          if (
              issue.milestone is None
              and not issue.assignees
              and issue.pull_request is None
              and (dt.utcnow() - issue.updated_at).days > 7
              and (dt.utcnow() - issue.created_at).days >= 14
              and not any(
                  label.name.lower() in LABELS_TO_EXEMPT
                  for label in issue.get_labels()
              )
          ):
              print("Closing", issue)
              issue.create_comment(
                  "This issue is being closed due to lack of activity. "
                  "If you think it still needs to be addressed, please comment on this thread 👇"
              )
              issue.add_to_labels("stale")
              issue.edit(state="closed")
  
imports: from datetime import datetime
  import os
  from github import Github
label_desc: Use image node_id 1 for calling a global function with example usage: main() without return types