code: def to_global_sampler_type_string(cls, module):
      data_module = module & (cls.NODE_SAMPLER | cls.EDGE_SAMPLER)
      if data_module == 0:
          return "none"
      elif data_module == cls.NODE_SAMPLER:
          return "node"
      elif data_module == cls.EDGE_SAMPLER:
          return "edge"
      elif data_module == cls.NODE_SAMPLER | cls.EDGE_SAMPLER:
          return "all"
      else:
          assert False
  
file_path: euler/euler/python/start_service.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import ctypes
  import os
  import threading
  import sys
  import time
  import multiprocessing
label_desc: Use image node_id 2 for calling the Module obj's underlying member method code with example usage: obj.to_global_sampler_type_string(cls, module) and returns: str, str, str, str