code: def download(
      resource_name, direct=False, *pip_args
  ):  # pylint:disable=keyword-arg-before-vararg
      """Download compatible language resources"""
      import sys
      from snips_nlu import __about__
      from snips_nlu.cli.utils import install_remote_package
  
      if direct:
          components = resource_name.split("-")
          name = "".join(components[:-1])
          version = components[-1]
          url_tail = "{n}-{v}/{n}-{v}.tar.gz#egg={n}=={v}".format(
              n=name, v=version
          )
          download_url = __about__.__download_url__ + "/" + url_tail
          dl = install_remote_package(download_url, pip_args)
          if dl != 0:
              sys.exit(dl)
      else:
          download_from_resource_name(resource_name, pip_args)
  
file_path: snips-nlu/snips_nlu/cli/download.py
imports: from __future__ import print_function, unicode_literals
label_desc: Use image node_id 3 for calling a global function with example usage: download(resource_name, direct) without return types