code: def dumps(
      value: PlistEncodable,
      sort_keys: bool = True,
      skipkeys: bool = False,
      use_builtin_types: Optional[bool] = None,
      pretty_print: bool = True,
  ) -> bytes:
      """Write a Python object to a string in plist format.
  
      Args:
          value: An object to write.
          sort_keys (bool): Whether keys of dictionaries should be sorted.
          skipkeys (bool): Whether to silently skip non-string dictionary
              keys.
          use_builtin_types (bool): If true, byte strings will be
              encoded in Base-64 and wrapped in a ``data`` tag; if
              false, they will be either stored as strings or an
              exception raised if they cannot be represented. Defaults
          pretty_print (bool): Whether to indent the output.
          indent_level (int): Level of indentation when serializing.
  
      Returns:
          string: A plist representation of the Python object.
  
      Raises:
          ``TypeError``
              if non-string dictionary keys are serialized
              and ``skipkeys`` is false.
          ``ValueError``
              if non-representable binary data is present
              and `use_builtin_types` is false.
      """
      fp = BytesIO()
      dump(
          value,
          fp,
          sort_keys=sort_keys,
          skipkeys=skipkeys,
          use_builtin_types=use_builtin_types,
          pretty_print=pretty_print,
      )
      return fp.getvalue()
  
imports: import collections.abc
  import re
  from typing import Any, Callable, Dict, List, Mapping, MutableMapping, Optional, Sequence, Type, Union, IO
  import warnings
  from io import BytesIO
  from datetime import datetime
  from base64 import b64encode, b64decode
  from numbers import Integral
  from types import SimpleNamespace
  from functools import singledispatch
  from fontTools.misc import etree
  from fontTools.misc.textTools import tostr
label_desc: Use image node_id 31 for calling a global function with example usage: dumps(value, sort_keys, skipkeys, use_builtin_types, pretty_print) and returns: fp