def build_kwargs(registry_id):
 if (not registry_id):
  return dict()
 else:
  return dict(registryId=registry_id)

def build_kwargs ( registry_id ) : if ( not registry_id ) : return dict ( ) else : return dict ( registryId = registry_id )
builds a kwargs dict which may contain the optional registryid .