code: def publish_data(gis, paths):
      """publish sample data"""
      for path in paths:
          item = gis.content.add({}, path)
          item.share(everyone=True)
          lyr = item.publish()
  
file_path: arcgis-python-api/misc/_common.py
imports: from arcgis.gis import GIS
label_desc: Use image node_id 7 for calling a global function with example usage: publish_data(gis, paths) without return types