def _parse_parameter_from_component(self, component: base_component.BaseComponent) -> None:
    'Extract embedded RuntimeParameter placeholders from a component.\n\n    Extract embedded RuntimeParameter placeholders from a component, then append\n    the corresponding dsl.PipelineParam to KubeflowDagRunner.\n\n    Args:\n      component: a TFX component.\n    '
    serialized_component = json_utils.dumps(component)
    placeholders = re.findall(data_types.RUNTIME_PARAMETER_PATTERN, serialized_component)
    for placeholder in placeholders:
        placeholder = placeholder.replace('\\', '')
        placeholder = utils.fix_brackets(placeholder)
        parameter = json_utils.loads(placeholder)
        if (parameter.name == tfx_pipeline.ROOT_PARAMETER.name):
            continue
        if (parameter.name not in self._deduped_parameter_names):
            self._deduped_parameter_names.add(parameter.name)
            dsl_parameter = dsl.PipelineParam(name=parameter.name, value=str(parameter.default))
            self._params.append(dsl_parameter)
Extract embedded RuntimeParameter placeholders from a component.

Extract embedded RuntimeParameter placeholders from a component, then append
the corresponding dsl.PipelineParam to KubeflowDagRunner.

Args:
  component: a TFX component.
def _parse_parameter_from_component(self, component: base_component.BaseComponent) -> None:
    'Extract embedded RuntimeParameter placeholders from a component.\n\n    Extract embedded RuntimeParameter placeholders from a component, then append\n    the corresponding dsl.PipelineParam to KubeflowDagRunner.\n\n    Args:\n      component: a TFX component.\n    '
    serialized_component = json_utils.dumps(component)
    placeholders = re.findall(data_types.RUNTIME_PARAMETER_PATTERN, serialized_component)
    for placeholder in placeholders:
        placeholder = placeholder.replace('\\', )
        placeholder = utils.fix_brackets(placeholder)
        parameter = json_utils.loads(placeholder)
        if (parameter.name == tfx_pipeline.ROOT_PARAMETER.name):
            continue
        if (parameter.name not in self._deduped_parameter_names):
            self._deduped_parameter_names.add(parameter.name)
            dsl_parameter = dsl.PipelineParam(name=parameter.name, value=str(parameter.default))
            self._params.append(dsl_parameter)