def perform_import(val, setting_name):
if isinstance(val, six.string_types):<EOL><INDENT>return import_from_string(val, setting_name)<EOL><DEDENT>elif isinstance(val, (list, tuple)):<EOL><INDENT>return [import_from_string(item, setting_name) for item in val]<EOL><DEDENT>return val<EOL>
If the given setting is a string import notation,
then perform the necessary import or imports.