class_docstr: A dictionary of information about the scheduler and workers.
class_docstr_tok: ["A","dictionary","of","information","about","the","scheduler","and","workers","."]
code: def _repr_html_(self):
      def _format_dashboard_address(server):
          try:
              host = (
                  server["host"]
                  if "host" in server
                  else urlparse(server["address"]).hostname
              )
              return format_dashboard_link(
                  host, server["services"]["dashboard"]
              )
          except KeyError:
              return None
  
      environment = get_environment()
      environment.filters[
          "format_dashboard_address"
      ] = _format_dashboard_address
      return environment.get_template("scheduler_info.html.j2").render(
          scheduler=self,
          **self,
      )
  
file_path: distributed/distributed/objects.py
imports: from __future__ import annotations
  from urllib.parse import urlparse
  from dask.widgets import get_environment, get_template
  from distributed.utils import format_dashboard_link
label_desc: Use image node_id 1 for calling the SchedulerInfo obj's underlying member method code with example usage: obj._repr_html_() and returns: environment, format_dashboard_link, None