code: def get_thread_id_for_variable_reference(self, variable_reference):
          '''
          We can't evaluate variable references values on any thread, only in the suspended
          thread (the main reason for this is that in UI frameworks inspecting a UI object
          from a different thread can potentially crash the application).
  
          :param int variable_reference:
              The variable reference (can be either a frame id or a reference to a previously
              gotten variable).
  
          :return str:
              The thread id for the thread to be used to inspect the given variable reference or
              None if the thread was already resumed.
          '''
          frames_tracker = self._get_tracker_for_variable_reference(variable_reference)
          if frames_tracker is not None:
              return frames_tracker.get_main_thread_id()
          return Nonf get_thread_id_for_variable_reference(self, variable_reference):
          '''
          We can't evaluate variable references values on any thread, only in the suspended
          thread (the main reason for this is that in UI frameworks inspecting a UI object
          from a different thread can potentially crash the application).
  
          :param int variable_reference:
              The variable reference (can be either a frame id or a reference to a previously
              gotten variable).
  
          :return str:
              The thread id for the thread to be used to inspect the given variable reference or
              None if the thread was already resumed.
          '''
          frames_tracker = self._get_tracker_for_variable_reference(variable_reference)
          if frames_tracker is not None:
              return frames_tracker.get_main_thread_id()
          return None
docs: We can't evaluate variable references values on any thread, only in the suspended
          thread (the main reason for this is that in UI frameworks inspecting a UI object
          from a different thread can potentially crash the application).
  
          :param int variable_reference:
              The variable reference (can be either a frame id or a reference to a previously
              gotten variable).
  
          :return str:
              The thread id for the thread to be used to inspect the given variable reference or
              None if the thread was already resumed.