code: def _get_extras(extras: str) -> str:
      """Get the given extras as a space delimited string.
  
      Used by the platform to install cloud extras in the cloud.
  
      """
      from lightning.app import __package_name__
  
      requirements = {
          r: Requirement(r) for r in metadata.requires(__package_name__)
      }
      marker = Marker(f'extra == "{extras}"')
      requirements = [
          r
          for r, req in requirements.items()
          if str(req.marker) == str(marker)
      ]
  
      if requirements:
          requirements = [
              f"'{r.split(';')[0].strip()}'" for r in requirements
          ]
          return " ".join(requirements)
      return ""
  
imports: import functools
  import os
  import platform
  import sys
  import warnings
  from typing import Any, List, Union
  from lightning_utilities.core.imports import module_available
  from packaging.requirements import Marker, Requirement
label_desc: Use image node_id 1 for calling a global function with example usage: _get_extras(extras) and returns: str, str