def METHOD_NAME():
    scratch_name = "myscratch1234"
    with environ_context(env={"QCA_SCRATCH_DIR": scratch_name}):
        description = {"name": "something", "hostname_pattern": "*", "scratch_directory": "$QCA_SCRATCH_DIR"}
        node = qcng.config.NodeDescriptor(**description)
        assert node.scratch_directory == scratch_name