def _get_record_data(self, obj):
        """
        Try to get the data for this subrecord using the full_name including namespace.
        If no data is given for the fullname, we will fallback to use the SubRecord name without namespace.

        Doing this allows namespace addition to a schema while being able to read legacy data missing a namespace.
        """
        if self.avro_type_name in obj:
            return obj[self.avro_type_name]
        else:
            base_name = self.avro_type_name.split('.')[-1]
            return obj[base_name]
dataset/ETHPy150Open spotify/pyschema/pyschema_extensions/avro.py/SubRecordMixin._get_record_data/original