code: def NMSLibAlternatingLeastSquares(
      *args,
      approximate_similar_items=True,
      approximate_recommend=True,
      method="hnsw",
      index_params=None,
      query_params=None,
      use_gpu=implicit.gpu.HAS_CUDA,
      **kwargs,
  ):
      # delay importing here in case nmslib isn't installed
      from implicit.ann.nmslib import NMSLibModel
  
      # note that we're using the factory function here to instantiate a CPU/GPU model as appropriate
      als_model = implicit.als.AlternatingLeastSquares(
          *args, use_gpu=use_gpu, **kwargs
      )
      return NMSLibModel(
          als_model,
          approximate_similar_items=approximate_similar_items,
          approximate_recommend=approximate_recommend,
          method=method,
          index_params=index_params,
          query_params=query_params,
      )
  
label_desc: Use image node_id 1 for calling a global function with example usage: NMSLibAlternatingLeastSquares() and returns: NMSLibModel