code: def get_access_control_function():
      
      fn_path = getattr(settings, 'ROSETTA_ACCESS_CONTROL_FUNCTION', None)
      if fn_path is None:
          return is_superuser_staff_or_in_translators_group
      # Dynamically load a permissions function
      perm_module, perm_func = fn_path.rsplit('.', 1)
      perm_module = importlib.import_module(perm_module)
      return getattr(perm_module, perm_func)
docs: Return a predicate for determining if a user can
      access the Rosetta views