text: import os
  import sys
  import unittest
  
  abspath = os.path.abspath(__file__)
  fld_name = os.path.dirname(abspath)
  sys.path.insert(0, os.getcwd())
  sys.path.insert(0, fld_name)
  sys.path.insert(0, os.path.dirname(fld_name))
  # When running tests from ipapi
  sys.path.insert(0, os.path.join(os.path.dirname(fld_name), "ipso_phen", ""))
  
  # When running tests from IPSO Phen
  sys.path.insert(0, os.path.join(os.path.dirname(fld_name), "..", ""))
  
  from ipapi.ipt.ipt_partial_analysis import IptPartialAnalysis
  from ipapi.base.ip_abstract import BaseImageProcessor
  from ipapi.base.ipt_loose_pipeline import LoosePipeline
  from ipapi.base.ipt_abstract_analyzer import IptBaseAnalyzer
  
  import ipapi.base.ip_common as ipc
  
  
  class TestIptPartialAnalysis(unittest.TestCase):
      def test_use_case(self):
          """Check that all use cases are allowed"""
          op = IptPartialAnalysis()
          for uc in op.use_case:
              self.assertIn(
                  uc, list(ipc.tool_family_hints.keys()), f"Unknown use case {uc}"
              )
  
      def test_docstring(self):
          """Test that class process_wrapper method has docstring"""
          op = IptPartialAnalysis()
          if not op.is_wip:
              self.assertIsNotNone(
                  op.process_wrapper.__doc__, "Missing docstring for Partial Analysis"
              )
  