def METHOD_NAME(classname, iio_uri):
    sdr = eval(classname + "(uri='" + iio_uri + "')")
    sdr._ctrl.debug_attrs["adi,clk-output-mode-select"].value = "1"
    sdr._ctrl.debug_attrs["initialize"].value = "1"
    full_uri = iio_uri.split(":", 2)
    if full_uri[0] != "ip":
        pytest.skip("Tuning currently supported only for ip URIs")
    ip = full_uri[1]
    ssh_client = paramiko.SSHClient()
    ssh_client.set_missing_host_key_policy(paramiko.AutoAddPolicy())
    ssh_client.connect(ip, username="root", password="analog")
    dev = classname[4:]
    ssh_stdin, ssh_stdout, ssh_stderr = ssh_client.exec_command(
        "cat /sys/kernel/debug/clk/" + dev + "_ext_refclk/clk_rate"
    )
    if ssh_stderr.channel.recv_exit_status() != 0:
        raise paramiko.SSHException("Command did not execute properly")
    clk_rate = ssh_stdout.readline()
    ssh_client.close()
    return float(clk_rate)