def METHOD_NAME(self):
    """Set video size."""
    # Only need to make a connection if width and height aren't provided
    if 'height' not in self.options or 'width' not in self.options:
        self.options['height'] = VIDEO_DEFAULT_HEIGHT
        self.options['width'] = VIDEO_DEFAULT_WIDTH
        if json:  # we can attempt to retrieve video attributes from vimeo
            try:
                url = ('https://vimeo.com/api/v2/video/{0}'
                       '.json'.format(self.arguments[0]))
                data = requests.get(url).text
                video_attributes = json.loads(data)[0]
                self.options['height'] = video_attributes['height']
                self.options['width'] = video_attributes['width']
            except Exception:
                # fall back to the defaults
                pass