tl;dr
You can't, unless you write your own function or implement a monkey patch.
Hashes are not designed to return the same value for multiple completely different snippets of data (although inevitably there have been collisions, like with MD5, due to the length of the hash). You could write your own function to check the value passed, and have it return a unique value if you need to. An example:
import hashlib
def my_func(thing):
hash_for_cheese = 'fea0f1f6fede90bd0a925b4194deac11'
if thing == "cheese":
return hash_for_cheese
elif thing == "football":
return hash_for_cheese
else:
return hashlib.md5(thing).hexdigest()
In this case, the same hash would be returned if you passed cheese
or football
to the function, otherwise it would return another hash.
Also, there is no 'config file'. It is just a specific algorithm written in a C program. If you are desperate, you might be able to change it, but it would only work on your system.
You could also implement what is known as a monkey patch. I'm not knowledgeable in that area, but you can find out more information from this SO post.
As others have pointed out, I can not think of a use case for this sort of problem, although if you need to do it, then you have your answer.