code: async def install_agent(self, connection, nonce, machine_id):
          
  
          # The path where the Juju agent should be installed.
          data_dir = "/var/lib/juju"
  
          # Disabling this prevents `apt-get update` from running initially, so
          # charms will fail to deploy
          disable_package_commands = False
  
          client_facade = client.ClientFacade.from_connection(connection)
          results = await client_facade.ProvisioningScript(
              data_dir,
              disable_package_commands,
              machine_id,
              nonce,
          )
  
          self._run_configure_script(results.script)
docs: :param object connection: Connection to Juju API
          :param str nonce: The nonce machine specification
          :param str machine_id: The id assigned to the machine
  
          :return: bool: If the initialization was successful