def load_parameter(input_name, input_value):
    check.invariant(MANAGER_FOR_NOTEBOOK_INSTANCE.populated_by_papermill, 'populated_by_papermill')
    if (MANAGER_FOR_NOTEBOOK_INSTANCE.solid_def is None):
        check.invariant((MANAGER_FOR_NOTEBOOK_INSTANCE.input_name_type_dict is not None), 'input_name_type_dict must not be None if solid_def is not defined!')
        input_name_type_dict = MANAGER_FOR_NOTEBOOK_INSTANCE.input_name_type_dict
        runtime_type_enum = input_name_type_dict[input_name]
        if ((runtime_type_enum == SerializableRuntimeType.SCALAR) or (runtime_type_enum == SerializableRuntimeType.JSON_SERIALIZABLE)):
            return input_value
        elif (runtime_type_enum == SerializableRuntimeType.PICKLE_SERIALIZABLE):
            return PickleSerializationStrategy().deserialize_from_file(input_value)
        else:
            raise DagstermillError('loading parameter {input_name} resulted in an error'.format(input_name=input_name))
    else:
        solid_def = MANAGER_FOR_NOTEBOOK_INSTANCE.solid_def
        input_def = solid_def.input_def_named(input_name)
        return read_value(input_def.runtime_type, input_value)
def load_parameter(input_name, input_value):
    check.invariant(MANAGER_FOR_NOTEBOOK_INSTANCE.populated_by_papermill, 'populated_by_papermill')
    if (MANAGER_FOR_NOTEBOOK_INSTANCE.solid_def is None):
        check.invariant((MANAGER_FOR_NOTEBOOK_INSTANCE.input_name_type_dict is not None), 'input_name_type_dict must not be None if solid_def is not defined!')
        input_name_type_dict = MANAGER_FOR_NOTEBOOK_INSTANCE.input_name_type_dict
        runtime_type_enum = input_name_type_dict[input_name]
        if ((runtime_type_enum == SerializableRuntimeType.SCALAR) or (runtime_type_enum == SerializableRuntimeType.JSON_SERIALIZABLE)):
            return input_value
        elif (runtime_type_enum == SerializableRuntimeType.PICKLE_SERIALIZABLE):
            return PickleSerializationStrategy().deserialize_from_file(input_value)
        else:
            raise DagstermillError('loading parameter {input_name} resulted in an error'.format(input_name=input_name))
    else:
        solid_def = MANAGER_FOR_NOTEBOOK_INSTANCE.solid_def
        input_def = solid_def.input_def_named(input_name)
        return read_value(input_def.runtime_type, input_value)