code: def __init__(self, name, handler, token=None):
      # TODO(kszucs): validate
      assert isinstance(name, str)
      assert callable(handler)
      self.name = name
      self.handler = handler
      kwargs = {}
      if token is not None:
          kwargs["auth"] = github.Auth.Token(token)
      self.github = github.Github(**kwargs)
  
imports: import enum
  import os
  import shlex
  from pathlib import Path
  from functools import lru_cache, partial
  import tempfile
  import click
  import github
  from .utils.git import git
  from .utils.logger import logger
  from .crossbow import Repo, Queue, Config, Target, Job, CommentReport
label_desc: Use image node_id 1 to create a new CommentBot object  with example: obj = CommentBot(name, handler, token)