class_docstr: Config options for widget rendering.
docstr: Convert config object to query string for LIT URL.
docstr_tok: ["Convert","config","object","to","query","string","for","LIT","URL","."]
code: def get_query_str(self):
      """Convert config object to query string for LIT URL."""
  
      def _encode(v):
          if isinstance(v, (list, tuple)):
              return ",".join(v)
          return v
  
      string_params = {
          k: _encode(v)
          for k, v in attr.asdict(self).items()
          if v is not None
      }
      return "?" + urllib.parse.urlencode(string_params)
  
imports: from collections.abc import Sequence
  import html
  import json
  import os
  import pathlib
  import random
  from typing import cast, Optional
  import urllib.parse
  import attr
  from IPython import display
  from lit_nlp import dev_server
  from lit_nlp import server_config
  from lit_nlp.api import layout
  from lit_nlp.lib import wsgi_serving
label_desc: Use image node_id 1 for calling the RenderConfig obj's underlying member method code with example usage: obj.get_query_str() and returns: unknown, v, str