def METHOD_NAME(v):
  if v == 'nightly':
    return V2_URL_TEMPLATE.format(v, 'compiled.d.ts')
  elif version_key(v) >= version_key('v3.0.6'):
    return HOSTED_URL_TEMPLATE.format(v.replace('v', ''), 'compiled.d.ts')
  else:
    return None