def METHOD_NAME(self, names):
    """Multiple pip-installed modules can be collected at once."""
    custom_modules = _DeployableEntity._custom_modules_as_artifact(names)
    for name in names:
        self.assert_in_custom_modules(custom_modules, name)