code: def test_get_extras():
      extras = (
          "app-cloud" if __package_name__ == "lightning" else "cloud"
      )
      extras = _get_extras(extras)
      assert "docker" in extras
      assert "redis" in extras
  
      assert _get_extras("fake-extras") == ""
  
file_path: pytorch-lightning/tests/tests_app/utilities/test_imports.py
imports: import os
  from unittest import mock
  import pytest
  from lightning.app import __package_name__
  from lightning.app.utilities.imports import _get_extras, requires
label_desc: Use image node_id 1 for calling a global function with example usage: test_get_extras() without return types