code: def get_shutit_pexpect_session_id(self, shutit_pexpect_child):
  		
  		shutit_global.shutit_global_object.yield_to_draw()
  		if not isinstance(shutit_pexpect_child, pexpect.pty_spawn.spawn):
  			self.fail('Wrong type in get_shutit_pexpect_session_id',throw_exception=True) # pragma: no cover
  		for key in self.shutit_pexpect_sessions:
  			if self.shutit_pexpect_sessions[key].pexpect_child == shutit_pexpect_child:
  				return key
  		return self.fail('Should not get here in get_shutit_pexpect_session_id',throw_exception=True)
docs: Given a pexpect child object, return the shutit_pexpect_session_id object.