code: def describe(self, resource=None):
          
          if resource is None:
              # Show simpler descriptor, omitting schema definitions
              simple_descriptor = copy.deepcopy(self._datapackage.descriptor)
              for resource in simple_descriptor['resources']:
                  resource.pop('schema', None)
              return simple_descriptor
          else:
              return self.__resources[resource].descriptor
docs: Describe dataset or resource within dataset
  
          :param resource: The name of a specific resource (i.e. file or table)
              contained in the dataset. If ``resource`` is None, this method
              will describe the dataset itself. (Default value = None)
          :type resource: str, optional
          :returns: The descriptor of the dataset or of a specific resource, if
          ``resource`` is specified in the call.
          :rtype: dict