def METHOD_NAME(
    self,
    client: MLClient,
    randstr: Callable[[], str],
    yaml_path: str,
    inputs: Dict,
    runsettings_dict: Dict,
    pipeline_runsettings_dict: Dict,
) -> None:
    omit_fields = ["id", "creation_context", "code", "name"]
    component_name = randstr("component_name")
    component_resource = create_component(client, component_name, path=yaml_path)
    loaded_dict = load_registered_component(client, component_name, component_resource.version, omit_fields)
    base_dir = "./tests/test_configs/internal"
    json_path = yaml_path.rsplit(".", 1)[0] + ".json"
    json_path = os.path.join(base_dir, "loaded_from_rest", os.path.relpath(json_path, base_dir))
    os.makedirs(os.path.dirname(json_path), exist_ok=True)
    if not os.path.isfile(json_path):
        with open(json_path, "w") as f:
            json.dump(loaded_dict, f, indent=2)
    with open(json_path, "r") as f:
        expected_dict = json.load(f)
        expected_dict["_source"] = "REMOTE.WORKSPACE.COMPONENT"
        # default value for datatransfer
        if expected_dict["type"] == "DataTransferComponent" and "datatransfer" not in expected_dict:
            expected_dict["datatransfer"] = {"allow_overwrite": "True"}
        # skip environment in arm string
        if "environment" in loaded_dict and isinstance(loaded_dict["environment"], str):
            omit_fields.append("environment")
        # TODO: check if loaded environment is expected to be an ordered dict
        assert pydash.omit(loaded_dict, *omit_fields) == pydash.omit(expected_dict, *omit_fields)