code: def get_entities_query(namespace, workspace, etype, page=1,
                         page_size=100, sort_direction="asc",
                         filter_terms=None):
      
  
      # Initial parameters for pagination
      params = {
          "page" : page,
          "pageSize" : page_size,
          "sortDirection" : sort_direction
      }
      if filter_terms:
          params['filterTerms'] = filter_terms
  
      uri = "workspaces/{0}/{1}/entityQuery/{2}".format(namespace,workspace,etype)
      return __get(uri, params=params)
docs: Paginated version of get_entities_with_type.
  
      Args:
          namespace (str): project to which workspace belongs
          workspace (str): Workspace name
  
      Swagger:
          https://api.firecloud.org/#!/Entities/entityQuery