def METHOD_NAME(port_name):
    global platform_sfputil
    global platform_chassis
    global platform_sfp_base
    global platform_sfputil_loaded
    try:
        if not platform_chassis:
            import sonic_platform
            platform_chassis = sonic_platform.platform.Platform().get_chassis()
        if not platform_sfp_base:
            import sonic_platform_base
            platform_sfp_base = sonic_platform_base.sfp_base.SfpBase
    except ModuleNotFoundError as e:
        # This method is referenced by intfutil which is called on vs image
        # However, there is no platform API supported on vs image
        # So False is returned in such case
        return False
    if platform_chassis and platform_sfp_base:
        if not platform_sfputil:
            load_platform_sfputil()
        if not platform_porttab_mapping_read:
            platform_sfputil_read_porttab_mappings()
        port_type = None
        try:
            physical_port = platform_sfputil.get_logical_to_physical(port_name)
            if physical_port:
                port_type = platform_chassis.get_port_or_cage_type(physical_port[0])
        except Exception as e:
            pass
        return port_type == platform_sfp_base.SFP_PORT_TYPE_BIT_RJ45
    return False