code: def test_valid_org_component_name():
      runner = CliRunner()
  
      # assert a bad name should fail
      fake_component = "fakeuser/impossible/name"
      result = runner.invoke(
          lightning_cli.cmd_install.install_component, [fake_component]
      )
      assert (
          "component name format must have organization/component-name"
          in result.output
      )
  
      # assert a good name (but unavailable name) should work
      fake_component = "fakeuser/ALKKLJAUHREKJ21234KLAKJDLF"
      result = runner.invoke(
          lightning_cli.cmd_install.install_component, [fake_component]
      )
      assert (
          f"component: '{fake_component}' is not available on ⚡ Lightning AI ⚡"
          in result.output
      )
  
      # assert a good (and availablea name) works
      fake_component = "lightning/lit-slack-messenger"
      result = runner.invoke(
          lightning_cli.cmd_install.install_component, [fake_component]
      )
      assert "Press enter to continue:" in result.output
  
imports: import os
  import subprocess
  from pathlib import Path
  from unittest import mock
  import pytest
  from click.testing import CliRunner
  from lightning.app.cli import cmd_install, lightning_cli
  from lightning.app.testing.helpers import _RunIf
label_desc: Use image node_id 4 for calling a global function with example usage: test_valid_org_component_name() without return types