Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def get_kwargs(transform, **kwargs):
if isinstance(transform, BaaLTransform):
t_kwargs = {k: kwargs[k] for k in transform.get_requires()}
else:
t_kwargs = {}
return t_kwargs