code: def token_hex(nbytes=None):
      """Return a random text string, in hexadecimal.
  
      The string has *nbytes* random bytes, each byte converted to two
      hex digits.  If *nbytes* is ``None`` or not supplied, a reasonable
      default is used.
  
      >>> token_hex(16)  #doctest:+SKIP
      'f9bf78b9a18ce6d46a0cd2b0b86df9da'
  
      """
      return binascii.hexlify(token_bytes(nbytes)).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 3 for calling a global function with example usage: token_hex(nbytes) and returns: binascii