code: def is_rootlevel(self):
          
          # when the activity itself is a root, than return False immediately
          if self.is_root():
              return False
  
          parent_name = None
          parent_dict = self._json_data.get('parent_id_name')
  
          if parent_dict and 'name' in parent_dict:
              parent_name = parent_dict.get('name')
          if not parent_dict:
              parent_name = self._client.activity(id=self._json_data.get('parent_id')).name
          if parent_name in ActivityRootNames.values():
              return True
          return False
docs: Determine if the Activity is at the root level of a project.
  
          It will look for the name of the parent which should be either ActivityRootNames.WORKFLOW_ROOT or
          ActivityRootNames.CATALOG_ROOT. If the name of the parent cannot be found an additional API call is made
          to retrieve the parent object (based on the `parent_id` in the json_data).
  
          :return: Return True if it is a root level activity, otherwise return False
          :rtype: bool