import yaml


def process_yaml_from_text(yaml_text):
    """Process yaml from given string data.

    Args:
      yaml_text: str, input for yaml processing.

    Returns:
      object, yaml data as dict.
    """
    data = yaml.load(yaml_text, Loader=yaml.SafeLoader)
    return data