class_docstr: Git source for PaddleHub module
  
  Args:
      url(str) : Url of git repository
      path(str) : Path to store the git repository
class_docstr_tok: ["Git","source","for","PaddleHub","module","Args",":","url","(","str",")",":","Url","of","git","repository","path","(","str",")",":","Path","to","store","the","git","repository"]
docstr: Checkout the current repo to the specified branch.
docstr_tok: ["Checkout","the","current","repo","to","the","specified","branch","."]
code: def checkout(self, branch: str):
      """Checkout the current repo to the specified branch."""
      try:
          self.repo.git.checkout(branch)
          # reload modules
          self.load_hub_modules()
      except:
          utils.record_exception(
              "An error occurred while checkout {}".format(self.path)
          )
  
file_path: PaddleHub/paddlehub/server/git_source.py
imports: import ast
  import inspect
  import importlib
  import os
  import sys
  from collections import OrderedDict
  from typing import List
  from paddlehub.module.module import RunModule
  from paddlehub.env import SOURCES_HOME
  from paddlehub.utils import log, utils
label_desc: Use image node_id 2 for calling the GitSource obj's underlying member method code with example usage: obj.checkout(branch) without return types