def get(self, key, default=None):
        """
        Access an attribute and return its value if exists.
        Otherwise return default.
        """
        try:
            return getattr(self, key)
        except AttributeError:
            return default

        Access an attribute and return its value if exists.
        Otherwise return default.
        
video_chat_with_MOSS/models/grit_src/third_party/CenterNet2/detectron2/data/catalog.py