def METHOD_NAME(
    self,
    project: str,
    kind: typing.Optional[str] = None,
    object_id: typing.Optional[str] = None,
    label_selector: typing.Optional[str] = None,
    group_by: typing.Optional[
        mlrun.common.schemas.ListRuntimeResourcesGroupByField
    ] = None,
) -> typing.Union[
    mlrun.common.schemas.RuntimeResourcesOutput,
    mlrun.common.schemas.GroupedByJobRuntimeResourcesOutput,
    mlrun.common.schemas.GroupedByProjectRuntimeResourcesOutput,