code: def test_analyze_for_some_actions():
      img = "dataset/img4.jpg"
      demography_objs = DeepFace.analyze(
          img, ["age", "gender"], silent=True
      )
  
      for demography in demography_objs:
          age = demography["age"]
          gender = demography["dominant_gender"]
  
          logger.debug(f"Age: { age }")
          logger.debug(f"Gender: {gender}")
  
          assert demography.get("age") is not None
          assert demography.get("dominant_gender") is not None
  
          # these are not in actions
          assert demography.get("dominant_race") is None
          assert demography.get("dominant_emotion") is None
  
      logger.info("✅ test analyze for some actions done")
  
file_path: deepface/tests/test_analyze.py
imports: import cv2
  from deepface import DeepFace
  from deepface.commons.logger import Logger
label_desc: Use image node_id 4 for calling a global function with example usage: test_analyze_for_some_actions() without return types