code: def luminosity_to_flux(lumErg_S, dist_Mpc):
      
      ################ > IMPORTS ################
      ## STANDARD LIB ##
      ## THIRD PARTY ##
      import numpy as np
      import math
      ## LOCAL APPLICATION ##
  
      ################ > VARIABLE SETTINGS ######
  
      ################ >ACTION(S) ################
      # Convert the distance to cm
      distCm = dist_Mpc * MPC_2_CMS
      fluxErg_cm2_S = lumErg_S / (4 * np.pi * distCm ** 2)
  
      return fluxErg_cm2_S
docs: *Convert luminosity to a flux*
  
      **Key Arguments:**
          - ``lumErg_S`` -- luminosity in ergs/sec
          - ``dist_Mpc`` -- distance in Mpc
  
      **Return:**
          - ``fluxErg_cm2_S`` -- flux in ergs/cm2/s