code: def _get_backend():
      # Main function to query backend
      package_name = input(
          "Enter backend name (same as Python package name, case sensitive): "
      )
      package_name = package_name.strip(" ")
      if package_name.strip(" ") == "":
          return False
      backend_spec = find_spec(package_name)
      if backend_spec is None:
          try:
              _get_user_input(_should_install_backend, package_name)
          except Exception as e:
              print(e)
              return False
      else:
          global _backend_is_installed
          _backend_is_installed = True
          print(f"{Fore.GREEN}Backend {package_name} found.", end=" ")
          print(f"Installed at {backend_spec.origin}\n")
  
      _get_user_input(_add_alias_for_backend)
  
      if _backend_is_installed:
  
          def _import_name():
              ret = (
                  input(
                      f"Enter Import name for package {package_name}, "
                      f"Press Enter to use {package_name}: "
                  )
                  .strip()
                  .lower()
              )
              if ret == "":
                  backend["name"] = package_name
              else:
                  backend["name"] = ret
              return True
  
          _get_user_input(_import_name)
  
          global _imported_backend
          print(
              f"{Style.BRIGHT}Importing {backend['name']} for type checking..."
          )
          try:
              _imported_backend = import_module(backend["name"])
              return True
          except Exception as e:
              print(f"{Fore.RED}Failed to import {backend['name']}:{e}")
              return False
  
      return True
  
file_path: ivy/scripts/backend_generation/generate.py
imports: import sys
  import subprocess
  import pprint
  import inspect
  import json
  from colorama import Fore, Style, init
  from importlib import import_module
  from importlib.util import find_spec
  from tree_generation import generate
  from shared import BackendNativeObject
  from dataclasses import asdict
label_desc: Use image node_id 4 for calling a global function with example usage: _get_backend() and returns: True, False, True, True, False, False