code: def make_temperature_sampling(temp=1.0):
      def sampling_func(dataset_sizes):
          return temperature_sampling(dataset_sizes, temp)
  
      return sampling_func
  
file_path: fairseq/fairseq/data/multilingual/sampling_method.py
imports: import logging
  from typing import List
label_desc: Use image node_id 3 for calling a global function with example usage: make_temperature_sampling(temp) and returns: sampling_func, temperature_sampling