class_docstr: Internal class used to parse kwargs for server URL, app_path, and session_id.
class_docstr_tok: ["Internal","class","used","to","parse","kwargs","for","server","URL",",","app_path",",","and","session_id","."]
code: def __init__(
      self,
      *,
      url: str = DEFAULT_SERVER_HTTP_URL,
      session_id: ID | None = None,
  ) -> None:
      self._url = url
  
      if self._url == "default":
          self._url = DEFAULT_SERVER_HTTP_URL
  
      if self._url.startswith("ws"):
          raise ValueError(
              "url should be the http or https URL for the server, not the websocket URL"
          )
  
      self._url = self._url.rstrip("/")
  
      # we lazy-generate the session_id so we can generate it server-side when appropriate
      self._session_id = session_id
  
imports: from __future__ import annotations
  import logging
  import json
  import os
  import re
  from os.path import relpath
  from pathlib import Path
  from typing import TYPE_CHECKING, Callable, ClassVar, Literal, Protocol, TypedDict, Union, cast, get_args
  from .None import __version__
  from .core.templates import CSS_RESOURCES, JS_RESOURCES
  from .core.types import ID, PathLike
  from .model import Model
  from .settings import LogLevel, settings
  from .util.dataclasses import dataclass, field
  from .util.paths import ROOT_DIR
  from .util.token import generate_session_id
  from .util.version import is_full_release
label_desc: Use image node_id 1 to create a new SessionCoordinates object  with example: obj = SessionCoordinates()