function getContextComponents(context, excludeNested, excludedTypes = []) {
  const values = [];

  context.utils.eachComponent(context.instance.options.editForm.components, (component, path) => {
    const addToContextComponents = excludeNested ? !component.tree : true;
    if (component.key !== context.data.key && addToContextComponents && !_.includes(excludedTypes, component.type)) {
      values.push({
        label: `${component.label || component.key} (${path})`,
        value: path,
      });
    }
  });

  return values;
}
Returns the components that are provided within an evaluation context.
@param {any} context - The evaluation context to get the components from.
@param {boolean} excludeNested - Exclude nested components.
@param {Array<string>} excludedTypes - The types of components to exclude.
@returns {Array} - The components within the evaluation context.