code: def merge_asset(self, other):
          
          for asset in other.asset:
              asset_name = asset.get("name")
              asset_type = asset.tag
              # Avoids duplication
              pattern = "./{}[@name='{}']".format(asset_type, asset_name)
              if self.asset.find(pattern) is None:
                  self.asset.append(asset)
docs: Useful for merging other files in a custom logic.