code: def create_stats_comment(project_stats):
      """Create a comment on the current PR containing the ClearML task stats."""
      payload_fname = os.getenv("GITHUB_EVENT_PATH")
      with open(payload_fname, "r") as f:
          payload = json.load(f)
      print(payload)
      owner, repo = (
          payload.get("repository", {}).get("full_name", "").split("/")
      )
      if owner and repo:
          gh = login(token=os.getenv("GH_TOKEN"))
          if gh:
              pull_request = gh.pull_request(
                  owner, repo, payload.get("number")
              )
              if pull_request:
                  pull_request.create_comment(project_stats)
              else:
                  print(f'Can not comment PR, {payload.get("number")}')
          else:
              print(f"Can not log in to gh, {os.getenv('GH_TOKEN')}")
  
file_path: clearml/examples/cicd/task_stats_to_comment.py
imports: import json
  import os
  import pandas
  from clearml import Task
  from github3 import login
  from tabulate import tabulate
label_desc: Use image node_id 3 for calling a global function with example usage: create_stats_comment(project_stats) without return types