docs: def get_key(key, data_structure):
          """
          Helper method for extracting values from a nested data structure.
  
          Args:
              key (str): The path to the vales (a series of keys and indexes
                  separated by '/')
              data_structure (dict or list): The data structure from which the
                  value will be extracted.
  
          Returns:
              str: The values associated with key
          """
          if key == '/':
              return data_structure
  
          path = key.split('/')
          # If the path start with '/', remove the empty string from the list
          path[0] or path.pop(0)
          current_value = data_structure
          while path:
              current_key = path.pop(0)
              try:
                  current_key = int(current_key)
              except ValueError:
                  pass
  
              try:
                  current_value = current_value[current_key]
              except (KeyError, IndexError):
                  LOGGER.debug('failed to extract path {}'.format(key))
                  return None
  
          return current_value