parameters: (thread_id)
return_statement: return None
docstring: Returns a stack object that can be used to dump a stack trace for
      the given thread id (or None if the id is not found).
docstring_summary: Returns a stack object that can be used to dump a stack trace for
      the given thread id (or None if the id is not found).
docstring_tokens: Returns a stack object that can be used to dump a stack trace for the given thread id ( or None if the id is not found ) .
function: def _find_thread_stack(thread_id):
      """Returns a stack object that can be used to dump a stack trace for
      the given thread id (or None if the id is not found)."""
      for tid, stack in sys._current_frames().items():
          if tid == thread_id:
              return stack
      return None
function_tokens: def _find_thread_stack ( thread_id ) : for tid , stack in sys . _current_frames ( ) . items ( ) : if tid == thread_id : return stack return None