code: def crypt(word, salt=None):
      """Return a string representing the one-way hash of a password, with a salt
      prepended.
  
      If ``salt`` is not specified or is ``None``, the strongest
      available method will be selected and a salt generated.  Otherwise,
      ``salt`` may be one of the ``crypt.METHOD_*`` values, or a string as
      returned by ``crypt.mksalt()``.
  
      """
      if salt is None or isinstance(salt, _Method):
          salt = mksalt(salt)
      return _crypt.crypt(word, salt)
  
file_path: catboost/contrib/tools/python3/src/Lib/crypt.py
imports: import sys
  import errno
  import string
  import warnings
  from random import SystemRandom
  from collections import namedtuple
label_desc: Use image node_id 2 for calling a global function with example usage: crypt(word, salt) and returns: _crypt