Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def load_dataset_lookup(key):
""" What type of object are we trying to unpickle? This is a python
dictionary based equivalent of a case statement. It returns the type
a given 'type' keyword in the hickle file.
Args:
py_obj: python object to look-up what function to use to dump to disk
Returns:
match: function that should be used to dump data to a new dataset
"""
match = hkl_types_dict.get(key, no_match_load)
return match