code: def from_tuple(cls, components: tuple) -> 'ComponentRef':
          
  
          component_ref = ComponentRef(name=components[0], child=[])
          c = component_ref
          for component in components[1:]:
              c.child.append(ComponentRef(name=component, child=[]))
              c = c.child[0]
          return component_ref
docs: Convert the tuple pointing to a component to
          a component reference.
          :param components: tuple of components name
          :return: ComponentRef