__copyright__ = "Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved."
__license__ = """
NVIDIA CORPORATION and its licensors retain all intellectual property
and proprietary rights in and to this software, related documentation
and any modifications thereto. Any use, reproduction, disclosure or
distribution of this software and related documentation without an express
license agreement from NVIDIA CORPORATION is strictly prohibited.
"""

import gc

scan_for_test_modules = True

def tc_logger(func):
    """
    Print TC macros about the test when running on TC

    (unneeded in kit)
    """

    def wrapper(*args, **kwargs):
        func(*args, **kwargs)
        # Always reset global stage cache and collect
        # garbage to ensure stage and Fabric cleanup
        from pxr import UsdUtils

        UsdUtils.StageCache.Get().Clear()
        gc.collect()

    return wrapper
