How can I programmatically get a list of orders purchased by a specific user? how can i get list of commerce order purchased by specific user programatically?

i want to create function for it so that other developers can use it in further development by simply calling that function.
i want to get name of orders purchased by user based on uid.

i have used drupal commerce module for it,i am not getting any table column in database where i can get relevant data.
to get ALL orders of a user - get user ID ($user_id)
then

$orders = \Drupal::entityTypeManager()
  -&gt;getStorage('commerce_order')
  -&gt;loadByProperties(['uid' =&gt; $user_id]);