code: def broadcast_object(key: str, obj: Any) -> Any:
      """This function enables to broadcast object across machines."""
      if os.getenv("LIGHTNING_APP_EXTERNAL_URL") is not None:
          return _ImmutableDistributedMap().set_and_get(key, obj)
      return obj
  
imports: import json
  import os
  import pickle
  from logging import Logger
  from typing import Any, Callable, Dict, Optional
  from urllib.parse import urljoin
  import requests
  import urllib3
  from requests.adapters import HTTPAdapter
  from urllib3.util.retry import Retry
label_desc: Use image node_id 2 for calling a global function with example usage: broadcast_object(key, obj) and returns: obj, _ImmutableDistributedMap