code: def __init__(
      self,
      uid: UID,
      permission: ActionPermission,
      credentials: Optional[SyftVerifyKey] = None,
  ):
      if credentials is None:
          if permission not in COMPOUND_ACTION_PERMISSION:
              raise Exception(
                  f"{permission} not in {COMPOUND_ACTION_PERMISSION}"
              )
      self.uid = uid
      self.credentials = credentials
      self.permission = permission
  
imports: from enum import Enum
  from typing import Optional
  from ...node.credentials import SyftVerifyKey
  from ...serde.serializable import serializable
  from ...types.uid import UID
label_desc: Use image node_id 1 to create a new ActionObjectPermission object  with example: obj = ActionObjectPermission(uid, permission, credentials)