def METHOD_NAME(self):
    policy = {}
    filename = self.udf_name
    udf_type = 0
    config = TestBaseClass.get_connection_config()
    client1 = aerospike.client(config)
    client1.close()
    with pytest.raises(e.ClusterError) as err_info:
        client1.udf_put(filename, udf_type, policy)
    assert err_info.value.code == AerospikeStatus.AEROSPIKE_CLUSTER_ERROR