code: def get_concept_relax(concept, concepts_full, concepts_relax):
      """
      Get the corresponding MEDIA relax concept from its full version.
  
      Arguments
      ---------
      concept: str
          Concept of the node being processed.
      concepts_full: list of str
          Concepts in method full.
      concepts_relax: list of str
          Concepts equivalent in method relax.
  
      Returns
      -------
      str
      """
  
      for c in concepts_full:
          if (
              c[-1] == "*" and concept[: len(c) - 1] == c[:-1]
          ) or concept == c:
              return concepts_relax[concepts_full.index(c)]
      return concept
  
imports: import xml.dom.minidom
  from tqdm import tqdm
  import logging
  import subprocess
  import csv
  import os
  import glob
  import re
label_desc: Use image node_id 22 for calling a global function with example usage: get_concept_relax(concept, concepts_full, concepts_relax) and returns: concept, concepts_relax