code: def license_prompt(model_name, model_website, dataset_dir=None):
      if dataset_dir:
          print(
              "\n\n***\n{} was not found in the directory: {}".format(
                  model_name, dataset_dir
              )
          )
      else:
          print(
              "\n\n***\n\n{} was not found on local installation".format(
                  model_name
              )
          )
      print(
          "{} can be downloaded from {}".format(
              model_name, model_website
          )
      )
      print(
          "The terms and conditions of the data set license apply. Intel does not "
          "grant any rights to the data files or database\n"
      )
      response = input(
          "To download '{}' from {}, please enter YES: ".format(
              model_name, model_website
          )
      )
      res = response.lower().strip()
      if res == "yes" or (len(res) == 1 and res == "y"):
          print("Downloading {}...".format(model_name))
          responded_yes = True
      else:
          print(
              "Download declined. Response received {} != YES|Y. ".format(
                  res
              )
          )
          if dataset_dir:
              print(
                  "Please download the model manually from {} and place in the directory: {}".format(
                      model_website, dataset_dir
                  )
              )
          else:
              print(
                  "Please download the model manually from {}".format(
                      model_website
                  )
              )
          responded_yes = False
      return responded_yes
  
file_path: nlp-architect/nlp_architect/utils/generic.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import re
  import numpy
label_desc: Use image node_id 5 for calling a global function with example usage: license_prompt(model_name, model_website, dataset_dir) and returns: responded_yes