code: def serialize(data: Any) -> str:
      """Serialize config data into a string.
  
      Typically used to pass config via the ``DASK_INTERNAL_INHERIT_CONFIG`` environment variable.
  
      Parameters
      ----------
      data: json-serializable object
          The data to serialize
  
      Returns
      -------
      serialized_data: str
          The serialized data as a string
  
      """
      return base64.urlsafe_b64encode(
          json.dumps(data).encode()
      ).decode()
  
imports: from __future__ import annotations
  import ast
  import base64
  import builtins
  import json
  import os
  import site
  import sys
  import threading
  import warnings
  from collections.abc import Mapping, Sequence
  from typing import Any, Literal
  import yaml
  from dask.typing import no_default
label_desc: Use image node_id 17 for calling a global function with example usage: serialize(data) and returns: base64