code: def add_to_referenced_objects(self, ref):
      if not hasattr(self, "referenced_objects"):
          self.referenced_objects = [ref]
      else:
          self.referenced_objects.append(ref)
  
file_path: faiss/faiss/python/__init__.py
imports: import numpy
  import sys
  import inspect
  from .loader import *
  from faiss import class_wrappers
  from faiss.gpu_wrappers import *
  from faiss.array_conversions import *
  from faiss.extra_wrappers import kmin, kmax, pairwise_distances, rand, randint, lrand, randn, rand_smooth_vectors, eval_intersection, normalize_L2, ResultHeap, knn, Kmeans, checksum, matrix_bucket_sort_inplace, bucket_sort, merge_knn_results, MapInt64ToInt64, knn_hamming, pack_bitstrings, unpack_bitstrings
label_desc: Use image node_id 2 for calling a global function with example usage: add_to_referenced_objects(ref) without return types