code: def get_remote_node(self):
          
          logging.getLogger("requests").setLevel(logging.WARNING)
          remote_node = None
          server_type = 'local'
          if self.driver_wrapper.config.getboolean_optional('Server', 'enabled'):
              # Request session info from grid hub
              session_id = self.driver_wrapper.driver.session_id
              self.logger.debug("Trying to identify remote node")
              try:
                  # Request session info from grid hub and extract remote node
                  url = '{}/grid/api/testsession?session={}'.format(self.get_server_url(),
                                                                    session_id)
                  proxy_id = requests.get(url).json()['proxyId']
                  remote_node = urlparse(proxy_id).hostname if urlparse(proxy_id).hostname else proxy_id
                  server_type = 'grid'
                  self.logger.debug("Test running in remote node %s", remote_node)
              except (ValueError, KeyError):
                  try:
                      # Request session info from GGR and extract remote node
                      from toolium.selenoid import Selenoid
                      remote_node = Selenoid(self.driver_wrapper).get_selenoid_info()['Name']
                      server_type = 'ggr'
                      self.logger.debug("Test running in a GGR remote node %s", remote_node)
                  except Exception:
                      try:
                          # The remote node is a Selenoid node
                          url = '{}/status'.format(self.get_server_url())
                          requests.get(url).json()['total']
                          remote_node = self.driver_wrapper.config.get('Server', 'host')
                          server_type = 'selenoid'
                          self.logger.debug("Test running in a Selenoid node %s", remote_node)
                      except Exception:
                          # The remote node is not a grid node or the session has been closed
                          remote_node = self.driver_wrapper.config.get('Server', 'host')
                          server_type = 'selenium'
                          self.logger.debug("Test running in a Selenium node %s", remote_node)
  
          return server_type, remote_node
docs: Return the remote node that it's executing the actual test session
  
          :returns: tuple with server type (local, grid, ggr, selenium) and remote node name