code: def __init__(self):
      try:
          from azure.ai.contentsafety import ContentSafetyClient
          from azure.core.credentials import AzureKeyCredential
  
          key = os.environ["CONTENT_SAFETY_KEY"]
          endpoint = os.environ["CONTENT_SAFETY_ENDPOINT"]
      except ImportError:
          raise Exception(
              "Could not import required package azure-ai-contentsafety. Install with: pip install azure-ai-contentsafety"
          )
      except KeyError:
          raise Exception(
              "Environment variables not set. Please set CONTENT_SAFETY_KEY and CONTENT_SAFETY_ENDPOINT."
          )
  
      self.client = ContentSafetyClient(
          endpoint, AzureKeyCredential(key)
      )
  
imports: import os
  import torch
  import warnings
  from typing import List
  from string import Template
  from enum import Enum
label_desc: Use image node_id 1 to create a new AzureSaftyChecker object from inherited base classes: object with example: obj = AzureSaftyChecker()