code: def get_categories(self, job_id, category_id=None, body=None, params=None):
          
          if job_id in SKIP_IN_PATH:
              raise ValueError("Empty value passed for a required argument 'job_id'.")
          return self.transport.perform_request(
              "GET",
              _make_path(
                  "_ml", "anomaly_detectors", job_id, "results", "categories", category_id
              ),
              params=params,
              body=body,
          )
docs: `<http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-category.html>`_
  
          :arg job_id: The name of the job
          :arg category_id: The identifier of the category definition of interest
          :arg body: Category selection details if not provided in URI
          :arg from_: skips a number of categories
          :arg size: specifies a max number of categories to get