class_docstr: PaddleHub server
class_docstr_tok: ["PaddleHub","server"]
docstr: Add a module source(GitSource or ServerSource)
docstr_tok: ["Add","a","module","source","(","GitSource","or","ServerSource",")"]
code: def add_source(
      self, url: str, source_type: str = "git", key: str = ""
  ):
      """Add a module source(GitSource or ServerSource)"""
      key = self._get_source_key(url) if not key else key
      self.keysmap[url] = key
      self.sources[key] = self._generate_source(url, source_type)
  
imports: import json
  import os
  import requests
  import threading
  import time
  import yaml
  from collections import OrderedDict
  from typing import List
  import paddle
  import paddlehub
  import paddlehub.config
  from paddlehub.config import cache_config
  from paddlehub.server import ServerSource, GitSource
  from paddlehub.utils import utils
label_desc: Use image node_id 4 for calling the HubServer obj's underlying member method code with example usage: obj.add_source(url, source_type, key) without return types