def get(self, server):
<EOL>if isinstance(server, int):<EOL><INDENT>if server >= len(self.sessions):<EOL><INDENT>return None<EOL><DEDENT>else:<EOL><INDENT>return self.sessions[server]<EOL><DEDENT><DEDENT>index = self._get_index(server)<EOL>if index == -<NUM_LIT:1>:<EOL><INDENT>return None<EOL><DEDENT>else:<EOL><INDENT>return self.sessions[index]<EOL><DEDENT>
Returns a registered GPServer object with a matching GenePattern server url or index
Returns None if no matching result was found
:param server:
:return: