def METHOD_NAME(remote_command_executor, scheduler_commands, test_datadir):
    # Install Intel Cluster Checker CLCK on head node
    logging.info("Installing Intel Cluster Checker")
    remote_command_executor.run_remote_script(str(test_datadir / "install_clck.sh"), hide=False)
    # Create nodefile
    # ip-172-31-15-31  # role: head
    # ip-172-31-12-237  # role: compute
    # ip-172-31-8-49  # role: compute
    remote_command_executor.run_remote_command("echo $HOSTNAME | awk '{print $1 \" # role: head\" }' > nodefile")
    compute_nodes = scheduler_commands.get_compute_nodes()
    for node in compute_nodes:
        remote_command_executor.run_remote_command("echo '{0} # role: compute' >> nodefile".format(node))
    result = remote_command_executor.run_remote_command("cat nodefile | wc -l")
    assert_that(result.stdout).contains("3")
    # Setup network interface
    # <!-- This tag can be used to set the network interface used for
    #      accumulating data collected on-demand.
    # -->
    # <!--
    # <network_interface>ens5</network_interface>
    # -->
    # /opt/intel/clck/2019.9/etc/clck.xml
    remote_command_executor.run_remote_command(
        "sudo cp ~/clck.xml /opt/intel/clck/2019.9/etc/clck.xml", additional_files=[str(test_datadir / "clck.xml")]
    )
    # Load modules in ~/.bashrc
    remote_command_executor.run_remote_command(
        "echo 'PATH=/opt/intel/intelpython2/bin/:$PATH\nPATH=/opt/intel/intelpython3/bin/:$PATH\n"
        "source /opt/intel/psxe_runtime/linux/bin/psxevars.sh' >> ~/.bashrc"
    )
    # Run Cluster Checker
    result = remote_command_executor.run_remote_script(str(test_datadir / "run_clck.sh"))
    try:
        assert_that(result.stdout).contains("Overall Result: No issues found")
    except AssertionError as e:
        logging.error(remote_command_executor.run_remote_command("cat clck_results.log").stdout)
        raise e