code: def _add_method(name, *args, rounds=None):
      method = _Method(name, *args)
      globals()["METHOD_" + name] = method
      salt = mksalt(method, rounds=rounds)
      result = None
      try:
          result = crypt("", salt)
      except OSError as e:
          # Not all libc libraries support all encryption methods.
          if e.errno in {errno.EINVAL, errno.EPERM, errno.ENOSYS}:
              return False
          raise
      if result and len(result) == method.total_size:
          methods.append(method)
          return True
      return False
  
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 3 for calling a global function with example usage: _add_method(name) and returns: False, True, False