def test_api_trulens_eval_compat(self):
        """Check that the trulens_eval API members are still present.

        To regenerate golden file, run `make write-api`.
        """
        # TODEP: Deprecate after trulens_eval is removed.

        golden_file = (
            f"{_GOLDEN_DIRECTORY}/api.trulens_eval.{self.pyversion}.yaml"
        )

        members = self.get_members_trulens_eval(aliases_are_defs=True)

        self.write_golden(
            golden_path=golden_file, data=members
        )  # will raise exception if golden file is written

        expected = self.load_golden(golden_file)

        jdiff = diff(expected, members, syntax=SymmetricJsonDiffSyntax())

        flat_diffs = list(self._flatten_api_diff(jdiff))

        fh = None
        if os.environ.get("WRITE_API_DIFF"):
            fh = open("api.diff", "w")

        if flat_diffs:
            for diff_type, diff_lens, diff_value in flat_diffs:
                if diff_type.label == "insert":
                    # ignore additions
                    continue
                if repr(diff_lens.path[-1]) == ".__bases__":
                    # Ignore __bases__ differences.
                    continue
                if repr(diff_lens.path[-1]) == ".__class__":
                    # Ignore __class__ differences.
                    continue
                if repr(diff_lens.path[-1]) == ".__version__":
                    # Ignore __version__ differences.
                    continue
                if isinstance(diff_value, dict) and len(diff_value) == 0:
                    # Ignore empty dicts in diffs.
                    continue
                with self.subTest(api=str(diff_lens)):
                    if fh:
                        fh.write(f"{diff_type} {diff_lens} {diff_value}\n")
                    self.fail(
                        f"trulens_eval compatibility API mismatch: {diff_type} at {diff_lens} value {diff_value}"
                    )

        if fh:
            fh.close()
Check that the trulens_eval API members are still present.

        To regenerate golden file, run `make write-api`.
        
tests/unit/static/test_api.py