def METHOD_NAME(self, id, **kwargs):  # noqa: E501
    """Get a socket's statistics  # noqa: E501
    Return a socket's statistics by id.  # noqa: E501
    This method makes a synchronous HTTP request by default. To make an
    asynchronous HTTP request, please pass async_req=True
    >>> thread = api.get_socket_stats(id, async_req=True)
    >>> result = thread.get()
    :param async_req bool
    :param str id: Unique resource identifier (required)
    :return: SocketStats
             If the method is called asynchronously,
             returns the request thread.
    """
    kwargs['_return_http_data_only'] = True
    if kwargs.get('async_req'):
        return self.get_socket_stats_with_http_info(id, **kwargs)  # noqa: E501
    else:
        (data) = self.get_socket_stats_with_http_info(id, **kwargs)  # noqa: E501
        return data