def assertGoldenJSONEqual(
        self,
        actual: serial_utils.JSON,
        golden_path: Union[Path, str],
        skips: Optional[Set[str]] = None,
        numeric_places: int = 7,
        unordereds: Optional[Set[str]] = None,
        unordered: bool = False,
    ):
        """Assert equality between [JSON-like][trulens_eval.util.serial.JSON]
        `actual` and the content of `golden_path`.

        If the environment variable
        [WRITE_GOLDEN_VAR][trulens_eval.tests.unit.test.WRITE_GOLDEN_VAR] is
        set, the golden file will be overwritten with the `actual` content. See
        [assertJSONEqual][trulens_eval.tests.unit.test.assertJSONEqual] for
        details on the equality check.

        Args:
            actual: The actual JSON-like object produced by some test.

            golden_path: The path to the golden file to compare against that
                stores the expected JSON-like results for the test. File must
                have an extension of either `.json` or `.yaml`. The extension
                determines output format. This is in relation to the git base
                directory.

                !!! WARNING
                    YAML dumper does not fully serialize all types which
                    prevents them from being loaded again.

            skips: A set of keys to skip in the comparison.

            numeric_places: The number of decimal places to compare for floating
                point

            unordereds: A set of keys or attribute names whose associated values
                are compared without orderered if they are sequences.

            unordered: If true, the order of elements in a sequence is not
                checked. Note that this only applies to the inputs `j1` and `j2`
                and not to any nested elements.

        Raises:
            FileNotFoundError: If the golden file is not found.

            AssertionError: If the actual JSON-like object does not match the
                expected JSON-like object

            AssertionError: If the golden file is written.
        """

        if isinstance(golden_path, str):
            golden_path = Path(golden_path)

        # Write golden and raise exception if writing golden is enabled.
        self.write_golden(golden_path=golden_path, data=actual)

        # Otherwise load the golden file and compare.
        expected = self.load_golden(golden_path)

        self.assertJSONEqual(
            actual,
            expected,
            skips=skips,
            numeric_places=numeric_places,
            unordereds=unordereds,
            unordered=unordered,
        )
Assert equality between [JSON-like][trulens_eval.util.serial.JSON]
        `actual` and the content of `golden_path`.

        If the environment variable
        [WRITE_GOLDEN_VAR][trulens_eval.tests.unit.test.WRITE_GOLDEN_VAR] is
        set, the golden file will be overwritten with the `actual` content. See
        [assertJSONEqual][trulens_eval.tests.unit.test.assertJSONEqual] for
        details on the equality check.

        Args:
            actual: The actual JSON-like object produced by some test.

            golden_path: The path to the golden file to compare against that
                stores the expected JSON-like results for the test. File must
                have an extension of either `.json` or `.yaml`. The extension
                determines output format. This is in relation to the git base
                directory.

                !!! WARNING
                    YAML dumper does not fully serialize all types which
                    prevents them from being loaded again.

            skips: A set of keys to skip in the comparison.

            numeric_places: The number of decimal places to compare for floating
                point

            unordereds: A set of keys or attribute names whose associated values
                are compared without orderered if they are sequences.

            unordered: If true, the order of elements in a sequence is not
                checked. Note that this only applies to the inputs `j1` and `j2`
                and not to any nested elements.

        Raises:
            FileNotFoundError: If the golden file is not found.

            AssertionError: If the actual JSON-like object does not match the
                expected JSON-like object

            AssertionError: If the golden file is written.
        
tests/test.py