code: def cosine_distance(self, vector):
      return self._distance("<=>", vector)
  
file_path: pgvector-python/pgvector/peewee/__init__.py
imports: from peewee import Expression, Field, Value
  from ..utils import from_db, to_db
label_desc: Use image node_id 8 for calling the VectorField obj's underlying member method code with example usage: obj.cosine_distance(vector) and returns: self