code: def check_density(density):
      if density <= 0:
          raise HTTPException(
              status_code=400, detail="Density must be greater than 0."
          )
  
imports: from typing import Optional, Dict, List
  from fastapi import HTTPException, Header
  from pydantic import BaseModel
  from starlette.responses import StreamingResponse
  from aim import Images, Texts, Distributions, Audios, Figures
  from aim.sdk.sequence import Sequence
  from aim.sdk.sequence_collection import QuerySequenceCollection
  from aim.sdk.types import QueryReportMode
  from aim.web.api.runs.pydantic_models import RunTracesBatchApiIn, URIBatchIn, QuerySyntaxErrorOut, ImageList, TextList, AudioList, DistributionInfo, FigureInfo, ObjectSearchRunView, ObjectSequenceBaseView
  from aim.web.api.runs.utils import checked_query, checked_range, get_project_repo, numpy_to_encodable, get_run_or_404
  from aim.web.api.runs.object_api_utils import CustomObjectApi, get_blobs_batch
label_desc: Use image node_id 1 for calling the CustomObjectApiConfig obj's underlying member method code with example usage: obj.check_density(density) without return types