code: def create(context, name, component_types, active, product_id, data):
      
      if component_types:
          component_types = component_types.split(',')
  
      state = utils.active_string(active)
      result = topic.create(context, name=name, component_types=component_types,
                            state=state, product_id=product_id, data=data)
      utils.format_output(result, context.format)
docs: create(context, name, component_types, active, product_id, data)
  
      Create a topic.
  
      >>> dcictl topic-create [OPTIONS]
  
      :param string name: Name of the topic [required]
      :param string component_types: list of component types separated by commas
      :param boolean active: Set the topic in the (in)active state
      :param string product_id: The product the topic belongs to
      :param string data: JSON data of the topic