parameters: (op_name, op_path, instance_name, arglist)
return_statement: return op
docstring: Get python operator.
docstring_summary: Get python operator.
docstring_tokens: Get python operator .
function: def _get_python_op(op_name, op_path, instance_name, arglist):
      """Get python operator."""
      module = __import__(op_path, fromlist=["None"])
      cls = getattr(module, op_name)
      if op_path != "mindspore.ops.functional":
          op = cls(*arglist)
      else:
          op = cls
      op.set_prim_instance_name(instance_name)
      return op
function_tokens: def _get_python_op ( op_name , op_path , instance_name , arglist ) : module = __import__ ( op_path , fromlist = [ "None" ] ) cls = getattr ( module , op_name ) if op_path != "mindspore.ops.functional" : op = cls ( * arglist ) else : op = cls op . set_prim_instance_name ( instance_name ) return op