def METHOD_NAME(img, meta, saved_ref_median_frame):
    """
    Create initial centroid guess based off of median frame of data.
    Parameters
    ----------
    img : 2D ndarray
        Array containing the star image.
    meta : eureka.lib.readECF.MetaClass
        The metadata object.
    saved_ref_median_frame : ndarray
        The stored median frame of the first batch.
    Returns 
    ------- 
    x : float 
        First guess of x centroid position. 
    y : float 
        First guess of y centroid position.
    refrence_median_frame : ndarray
        Median frame of the first batch.
    Notes
    -----
    History:
    - Feb 22, 2023 Isaac Edelman 
        Initial implementation.
    """
    # Create median frame
    if saved_ref_median_frame is None:
        refrence_median_frame = np.ma.median(img, axis=0)
    else:
        refrence_median_frame = saved_ref_median_frame
    # Create initial centroid guess using specified method
    if meta.centroid_tech.lower() in ['com', '1dg', '2dg']:
        cent_func = getattr(sys.modules[__name__],
                            ("centroid_" + meta.centroid_tech.lower()))
        x, y = cent_func(refrence_median_frame)
    else:
        print("Invalid centroid_tech option")
    return x, y, refrence_median_frame