def METHOD_NAME(self):
    @component(
        packages_to_install=['numpy', 'tensorflow'],
        pip_index_urls=['https://pypi.org/simple'])
    def comp(text: str) -> str:
        return text
    self.assertIsInstance(comp, python_component.PythonComponent)
    concat_command = ' '.join(
        comp.component_spec.implementation.container.command)
    self.assertTrue('numpy' in concat_command and
                    'tensorflow' in concat_command)
    self.assertTrue('https://pypi.org/simple' in concat_command)