class_docstr: The sandboxed environment.  It works like the regular environment but
  tells the compiler to generate sandboxed code.  Additionally subclasses of
  this environment may override the methods that tell the runtime what
  attributes or functions are safe to access.
  
  If the template tries to access insecure code a :exc:`SecurityError` is
  raised.  However also other exceptions may occur during the rendering so
  the caller has to ensure that all exceptions are caught.
docstr: Check if an object is safely callable.  Per default a function is
  considered safe unless the `unsafe_callable` attribute exists and is
  True.  Override this method to alter the behavior, but this won't
  affect the `unsafe` decorator from this module.
docstr_tok: ["Check","if","an","object","is","safely","callable",".","Per","default","a","function","is","considered","safe","unless","the","`","unsafe_callable","`","attribute","exists","and","is","True",".","Override","this","method","to","alter","the","behavior",",","but","this","won't","affect","the","`","unsafe","`","decorator","from","this","module","."]
code: def is_safe_callable(self, obj):
      """Check if an object is safely callable.  Per default a function is
      considered safe unless the `unsafe_callable` attribute exists and is
      True.  Override this method to alter the behavior, but this won't
      affect the `unsafe` decorator from this module.
      """
      return not (
          getattr(obj, "unsafe_callable", False)
          or getattr(obj, "alters_data", False)
      )
  
imports: import operator
  import types
  import warnings
  from collections import deque
  from string import Formatter
  from markupsafe import EscapeFormatter
  from markupsafe import Markup
  from ._compat import abc
  from ._compat import PY2
  from ._compat import range_type
  from ._compat import string_types
  from .environment import Environment
  from .exceptions import SecurityError
label_desc: Use image node_id 4 for calling the SandboxedEnvironment obj's underlying member method code with example usage: obj.is_safe_callable(obj) and returns: unknown