code: def rank(self):
      from crypten.communicator import InProcessCommunicator
  
      if threading.current_thread() == threading.main_thread():
          return self.MAIN_PROCESS_RANK
  
      return InProcessCommunicator.get().rank
  
file_path: CrypTen/test/multithread_test_case.py
imports: import queue
  import sys
  import threading
  import unittest
  from functools import wraps
  from threading import Thread
  import crypten
label_desc: Use image node_id 1 for calling the MultiThreadTestCase obj's underlying member method code with example usage: obj.rank() and returns: InProcessCommunicator, self