Is it possible to write a python script using arcpy that is for a tool not included in the current desktop license level?
For example, write something using the Identity Tool when you only have a standard license?
Is it possible to write a python script using arcpy that is for a tool not included in the current desktop license level?
For example, write something using the Identity Tool when you only have a standard license?
You can't 'use' the tool if your license doesn't include it. But yes, in some cases, you can definitely create similar/equivalent tools using Python and arcpy. I've done a few over the years.
For a lot of cases, cursors and geometry methods will do a lot of the heavy lifting. Take Buffer as an example, a combination of SearchCursor and InsertCursor paired with the geometry buffer method will take you most of the way.
Seconding @DWynne, you can't use a tool if your license does not allow access to it. You might consider moving at least partly to an open source based solution for the tools you do not have access to. Have a look at Migrating from ArcGIS to gdal for a list of alternatives to some of ArcGIS tools.
There are many tools that require an Advanced level license that can have very effective workarounds written using a Basic or Standard level license. For example, the Frequency tool can be replaced by Summary Statistics with a case field.
However, there are also likely to be many that cannot.
In the example, you give it is very easy to replace the Identity tool with Union followed by Select to choose just those features that have the ID from the in_features.