code: def get_connection(self, connection: str, configuration: Config) -> Any:
          
          if connection not in self.connections:
              conn = self.get_connection_parameters(connection)
              self.open_connection(
                  connection=connection,
                  configuration=configuration,
                  hostname=conn.hostname,
                  port=conn.port,
                  username=conn.username,
                  password=conn.password,
                  platform=conn.platform,
                  extras=conn.extras,
              )
          return self.connections[connection].connection
docs: The function of this method is twofold:
  
              1. If an existing connection is already established for the given type return it
              2. If none exists, establish a new connection of that type with default parameters
                 and return it
  
          Raises:
              AttributeError: if it's unknown how to establish a connection for the given type
  
          Arguments:
              connection: Name of the connection, for instance, netmiko, paramiko, napalm...
  
          Returns:
              An already established connection