code: def _request_code_execution(
      self,
      context: AuthedServiceContext,
      code: SubmitUserCode,
      reason: Optional[str] = "",
  ):
      user_code: UserCode = code.to(UserCode, context=context)
      return self._request_code_execution_inner(
          context, user_code, reason
      )
  
imports: from typing import Any
  from typing import Dict
  from typing import List
  from typing import Optional
  from typing import Union
  from result import Err
  from result import Ok
  from result import OkErr
  from result import Result
  from ...abstract_node import NodeType
  from ...client.enclave_client import EnclaveClient
  from ...serde.serializable import serializable
  from ...store.document_store import DocumentStore
  from ...store.linked_obj import LinkedObject
  from ...types.twin_object import TwinObject
  from ...types.uid import UID
  from ...util.telemetry import instrument
  from ..action.action_object import ActionObject
  from ..action.action_permissions import ActionObjectPermission
  from ..action.action_permissions import ActionPermission
  from ..context import AuthedServiceContext
  from ..network.routes import route_to_connection
  from ..request.request import SubmitRequest
  from ..request.request import UserCodeStatusChange
  from ..request.request_service import RequestService
  from ..response import SyftError
  from ..response import SyftSuccess
  from ..service import AbstractService
  from ..service import SERVICE_TO_TYPES
  from ..service import TYPE_TO_SERVICE
  from ..service import service_method
  from ..user.user_roles import DATA_SCIENTIST_ROLE_LEVEL
  from ..user.user_roles import GUEST_ROLE_LEVEL
  from .user_code import SubmitUserCode
  from .user_code import UserCode
  from .user_code import UserCodeStatus
  from .user_code import load_approved_policy_code
  from .user_code_stash import UserCodeStash
label_desc: Use image node_id 6 for calling the UserCodeService obj's underlying member method code with example usage: obj._request_code_execution(context, code, reason) and returns: self