def METHOD_NAME(self):
    input_text = ["这是一只猫", "这是一只狗"]
    # dygraph test
    dygraph_taskflow = Taskflow(
        model="__internal_testing__/tiny-random-ernievil2",
        task="feature_extraction",
        is_static_model=False,
        return_tensors="np",
        max_length=self.max_length,
    )
    dygraph_results = dygraph_taskflow(input_text)
    shape = dygraph_results["features"].shape
    self.assertEqual(shape[0], 2)
    # static test
    static_taskflow = Taskflow(
        model="__internal_testing__/tiny-random-ernievil2",
        task="feature_extraction",
        is_static_model=True,
        return_tensors="np",
        max_length=self.max_length,
    )
    static_results = static_taskflow(input_text)
    self.assertEqual(static_results["features"].shape[0], 2)
    for dygraph_result, static_result in zip(dygraph_results["features"], static_results["features"]):
        for dygraph_pred, static_pred in zip(dygraph_result.tolist(), static_result.tolist()):
            self.assertAlmostEqual(dygraph_pred, static_pred, delta=1e-5)
    input_image = self.prepare_inputs(equal_resolution=True, paddleify=False)
    #  dygraph image test
    dygraph_results = dygraph_taskflow(input_image)
    self.assertEqual(dygraph_results["features"].shape[0], 2)
    # static image test
    static_results = static_taskflow(input_image)
    self.assertEqual(static_results["features"].shape[0], 2)
    for dygraph_result, static_result in zip(dygraph_results["features"], static_results["features"]):
        for dygraph_pred, static_pred in zip(dygraph_result.tolist(), static_result.tolist()):
            self.assertAlmostEqual(dygraph_pred, static_pred, delta=1e-5)