def METHOD_NAME(object):
    from ansys.grpc.dpf import support_service_pb2_grpc
    object._server.create_stub_if_necessary(SupportGRPCAPI.STUBNAME,
                                            support_service_pb2_grpc.SupportServiceStub)
    data_processing_grpcapi.DataProcessingGRPCAPI.init_data_processing_environment(object)
    if object._server.meet_version("4.0"):
        object._deleter_func = (
        data_processing_grpcapi._get_stub(object._server).Delete, lambda obj: obj._internal_obj)
    else:
        from ansys.dpf.gate import scoping_grpcapi
        scoping_grpcapi.ScopingGRPCAPI.init_scoping_environment(object)
        object._deleter_func = (
            scoping_grpcapi._get_stub(object._server).Delete, lambda obj: obj._internal_obj
        )