code: def inspect_node(node):
      
      node_information = {}
      ssh = node.connect()
      if not ssh:
          log.error("Unable to connect to node %s", node.name)
          return
  
      (_in, _out, _err) = ssh.exec_command("(type >& /dev/null -a srun && echo slurm) \
                        || (type >& /dev/null -a qconf && echo sge) \
                        || (type >& /dev/null -a pbsnodes && echo pbs) \
                        || echo UNKNOWN")
      node_information['type'] = _out.read().strip()
  
      (_in, _out, _err) = ssh.exec_command("arch")
      node_information['architecture'] = _out.read().strip()
  
      if node_information['type'] == 'slurm':
          inspect_slurm_cluster(ssh, node_information)
      elif node_information['type'] == 'sge':
          inspect_sge_cluster(ssh, node_information)
      ssh.close()
      return node_information
docs: This function accept a `elasticluster.cluster.Node` class,
      connects to a node and tries to discover the kind of batch system
      installed, and some other information.