code: def is_mask_anomalous(path):
      img_arr = imread(path)
      if np.all(img_arr == 0):
          return 0
      return 1
  
imports: from __future__ import annotations
  import logging
  from pathlib import Path
  import albumentations
  import numpy
  from cv2 import imread
  from pandas import DataFrame
  from sklearn.model_selection import train_test_split
  from anomalib.data.base import AnomalibDataModule, AnomalibDataset
  from anomalib.data.task_type import TaskType
  from anomalib.data.utils import DownloadInfo, InputNormalizationMethod, Split, TestSplitMode, ValSplitMode, download_and_extract, get_transforms
label_desc: Use image node_id 1 for calling a global function with example usage: is_mask_anomalous(path) and returns: int, int