def read_client_secrets():
client_secrets = _default_client_secrets()<EOL>secrets = get_secrets_file()<EOL>if secrets is not None:<EOL><INDENT>client_secrets = read_json(secrets)<EOL><DEDENT>else:<EOL><INDENT>from sregistry.defaults import SREGISTRY_CLIENT_SECRETS<EOL>write_json(client_secrets, SREGISTRY_CLIENT_SECRETS)<EOL><DEDENT>return client_secrets<EOL>
for private or protected registries, a client secrets file is required
       to be located at .sregistry. If no secrets are found, we use default
       of Singularity Hub, and return a dummy secrets.