in src/sagemaker_inference/transformer.py [0:0]
def find_spec(module_name):
"""Function that searches for a module.
Args:
module_name: The name of the module to search for.
Returns:
bool: Whether the module was found.
"""
try:
imp.find_module(module_name)
return True
except ImportError:
return None