code: def _set_commands(package_names):
          
  
          commands = {}
  
          for pkg_name in package_names:
              cmd_name = pkg_name.split('.')[-1]
              commands[cmd_name] = pkg_name
  
          return commands
docs: Extract the command name from package name. Last part of the module path is the command
          ie. if path is foo.bar.baz, then "baz" is the command name.
  
          :param package_names: List of package names
          :return: Dictionary with command name as key and the package name as value.