How to create custom operator as pip module

I have installed airflow on K8S and with airflow image.
Question is how to create a custom operator as a pip module so that I can run install that while creating image ?
any reference/sample will be useful