code: def token_urlsafe(nbytes=None):
      """Return a random URL-safe text string, in Base64 encoding.
  
      The string has *nbytes* random bytes.  If *nbytes* is ``None``
      or not supplied, a reasonable default is used.
  
      >>> token_urlsafe(16)  #doctest:+SKIP
      'Drmhze6EPcv0fN_81Bj-nA'
  
      """
      tok = token_bytes(nbytes)
      return base64.urlsafe_b64encode(tok).rstrip(b"=").decode("ascii")
  
file_path: catboost/contrib/tools/python3/src/Lib/secrets.py
imports: import base64
  import binascii
  from hmac import compare_digest
  from random import SystemRandom
label_desc: Use image node_id 4 for calling a global function with example usage: token_urlsafe(nbytes) and returns: base64