code: def extract_config(config, prefix):
      
      prefix = prefix.strip('.') + '.'
      plen = len(prefix)
      value = {}
      for k, v in config.items():
          if k.startswith(prefix):
              value[k[plen:]] = v
      return value
docs: return all keys with the same prefix without the prefix