code: def map_attribute_result_to_value(attribute):
      for attribute_map, value_key in [
          (atomic_attribute_types_map, VALUE),
          (value_series_attribute_types_map, LAST_VALUE),
          (value_set_attribute_types_map, VALUES),
      ]:
          source_property = attribute_map.get(attribute.type)
          if source_property is not None:
              mapped_attribute_entry = getattr(
                  attribute, source_property
              )
              return getattr(mapped_attribute_entry, value_key)
      return NoValue
  
label_desc: Use image node_id 1 for calling a global function with example usage: map_attribute_result_to_value(attribute) and returns: NoValue, getattr