in smdebug_rulesconfig/actions/actions.py [0:0]
def is_valid_action_object(actions: Union[Action, ActionList]):
"""
Helper function to be used by the sagemaker SDK to determine whether the provided object is a valid action object
or not (must be of type `Action` or `ActionList`.
:param actions: actions object specified by the user when calling `Rule.sagemaker` in the sagemaker SDK.
:return: Boolean for whether the provided actions object is valid or not.
"""
return isinstance(actions, Action) or isinstance(actions, ActionList)