code: def section(self, ctx, optional=False):
          
          values = self.load()
          try:
              return values[ctx.info_name]
          except KeyError:
              if optional:
                  return configobj.ConfigObj({}, **self.DEFAULT_CONFIG_OPTS)
              raise LoggedFailure("Configuration section '{}' not found!".format(ctx.info_name))
docs: Return section of the config for a specific context (sub-command).
  
              Parameters:
                  ctx (Context): The Click context object.
                  optional (bool): If ``True``, return an empty config object when section is missing.
  
              Returns:
                  Section: The configuration section belonging to
                      the active (sub-)command (based on ``ctx.info_name``).