code: def get_safe_value(self):
      if type(self._obj) in (
          bool,
          bytes,
          float,
          int,
          str,
          unicode,
          slice,
      ):
          return self._obj
      raise ValueError(
          "Object is type %s and not simple" % type(self._obj)
      )
  
imports: import inspect
  import types
  import sys
  from textwrap import dedent
  import operator
  from collections import namedtuple
  from jedi._compatibility import unicode, is_py3, builtins, py_version, force_unicode, print_to_stderr
  from jedi.evaluate.compiled.getattr_static import getattr_static
label_desc: Use image node_id 22 for calling the DirectObjectAccess obj's underlying member method code with example usage: obj.get_safe_value() and returns: self