<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def settings(self, height=None, url_params={}, render=None):
 """Specify iframe height and add URL parameter dictionary. The library takes care of URI component encoding for the dictionary. :param height: Height in pixels. :type height: Integer. :param url_params: Dictionary of querystring parameters to append to the URL. :type url_params: Dictionary :param render: Whether to render the visualization using the native notebook environment (default True), or return the visualization URL :type render: Boolean """


        res = copy.copy(self)
        res._height = height or self._height
        res._url_params = dict(self._url_params, **url_params)
        res._render = self._render if render == None else render
        return res