code: def abi_get_element_by_name(abi, name):
      
      if (abi and "abi" in abi):
          for a in abi["abi"]:
              if ("name" in a and a["name"] == name):
                  return a
      return None
docs: Return element of abi (return None if fails to find)