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: Search PaddleHub Resource
  
  Args:
      type(str) : Resource type
      name(str) : Resource name
      version(str) : Resource version
docstr_tok: ["Search","PaddleHub","Resource","Args",":","type","(","str",")",":","Resource","type","name","(","str",")",":","Resource","name","version","(","str",")",":","Resource","version"]
code: def search_resource(
      self, type: str, name: str, version: str = None
  ) -> List[dict]:
      """
      Search PaddleHub Resource
  
      Args:
          type(str) : Resource type
          name(str) : Resource name
          version(str) : Resource version
      """
      module = self.hub_modules.get(name, None)
      if module and module.version.match(version):
          path = sys.modules[module.__module__].__file__
          path = os.path.dirname(path)
          return [
              {
                  "version": module.version,
                  "name": module.name,
                  "path": path,
                  "class": module.__name__,
                  "source": self.url,
              }
          ]
      return None
  
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 6 for calling the GitSource obj's underlying member method code with example usage: obj.search_resource(type, name, version) and returns: None, list